Click to See Complete Forum and Search --> : need help with java gcj
alaskian
04-30-2002, 03:48 PM
anyone out there have experience with gjc, compiler for java (I think). Can't find much documentation on whether my file needs to have a .jar or .java extension, also am not sure where to set my classpath. Any suggestions? Thanks.
debiandude
04-30-2002, 05:57 PM
It can be in any format, jar java zip class etc... It's pretty similiar to your gcc compiler. For example say you have a small hello program with
public class Hello
to compile would be:
gcj --main=Hello -o Hello Hello.java
debiandude
04-30-2002, 11:37 PM
Erm btw perhaps like I you naievely though that you can use swing and all that good stuff when you compile with gcj. You can't. Just thought perhaps you would like to know that before you deciede to dump javac.