starting with java
Simon Rutishauser
simon.rutishauser@gmx.ch
Thu Aug 14 18:22:00 GMT 2003
What gcj version, where did you get it?
www.thisiscool.com ?
It has a lot of samples where you can see how to compile things.
How are you compiling?
creating an exe works like this:
gcj --main=MainClass -o MyProg.exe MainClass.java OtherClass.java
(for compiling & linking in one step)
you can also use class files as input there but using java-Files is
supposed to result in better optimization (???)
to create Classfiles use the
-C
parameter
I actually was quite suprised "gcj --help" doesn't show that - but it's in
the manpage which you (even as a W2k user) should read, too
Peschmä
Am Wed, 13 Aug 2003 10:15:27 +0200 schrieb Marie-Laure et Arash:
>
>
> Hello !
>
> I have a windows 2000 machine.
> I have downloaded gcj and gcc. Each one in a separate directory. gcc works
> OK. gcj works OK as well at least for the compilation, and assembly. The
> link step does not work. It says :
> "cannot open ctr2.o"
> Is there anything to be done with libgcj ???
>
> Other question :
> There is still something I have not figured out yet. Once you have run gcj
> successfully till the end, do you get byte code or executable code ? I
> have looked the gcj options and I did n't find any clue. Can anyone tell
> me how to make byte code and how top make executable files ?
>
> Thanks in advance
>
> Arash Habibi
More information about the Java
mailing list