LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   compiling java programs in FedoraCore1 (https://www.linuxquestions.org/questions/programming-9/compiling-java-programs-in-fedoracore1-250176/)

koodoo 11-02-2004 08:00 AM

compiling java programs in FedoraCore1
 
Hi,

I am using Fedora Core1

How can i compile and run my java programs

Does gcc have inbuilt support for compiling java programs?
If so what is the procedure/syntax involved

What are the packages available (eg development kits) for
compiling java programs

ilikejam 11-02-2004 08:16 AM

Hi.

I'd grab the J2SE SDK from the Sun website (java.sun.con).

That will give you the Java runtime envirnoment 'java' and the Java compiler 'javac'.

Dave

jordanGSU 11-03-2004 11:03 AM

gcc can be compiled to support java...see if gcj is a recognized command, if so, the 2 lines of code below will compile a Java file into executable format(not byte code).

gcj -c -g -O test.java
gcj --main=test -o test test.o

//to execute the compiled program:
./test

hi_all 02-20-2006 02:05 AM

Thank you very much jordanGSU


All times are GMT -5. The time now is 10:35 AM.