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 |
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 |
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 |
Thank you very much jordanGSU
|
All times are GMT -5. The time now is 10:35 AM. |