LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   compiling & running java using gcc (https://www.linuxquestions.org/questions/linux-newbie-8/compiling-and-running-java-using-gcc-273630/)

kiran_kondru17 01-04-2005 06:07 AM

compiling & running java using gcc
 
Hi everybody

I read somewhere that i could compile and run java apps using "gcc". How can i do that? could anybody please help

os: Redhat 9
P III 700 mHz

I also installed J2SDK 1.4.0 (rpm ) from Sun.

bullwinkle 01-04-2005 11:49 AM

well heres how u can do it....
gcj example.java
and then i thnk u get the assembler output....yeah yeah u get the executable not a .o file.
U can install j2sdk1.4.2 from the tar ball by the way.......
gcj doesnt have manythings that a standard java compiler should have. Many features are infact not proper( i felt so atleast)
javac is best for java
have fun
bye


All times are GMT -5. The time now is 10:37 PM.