Problem linking java program
Mark Wielaard
mark@klomp.org
Thu Nov 10 13:26:00 GMT 2005
Hi Julian,
On Thu, 2005-11-10 at 14:19 +0100, Julien Claassen wrote:
> In Nov 10 A.D. 2005 Michael Koch scripsit:
> > use this:
> >
> > gcj --main=Test Test.java -o test
> Will
> gcj --main=Test -c Test.java
> Then generate code, that can be interpreted with gij?
No, not directly If you want to produce byte code then use the -C
option. See http://gcc.gnu.org/onlinedocs/gcj/Code-Generation.html
You can get gij to use the generated precompiled object code if you turn
it into a shared library and register it with the system wide gcj/gij
class database.
See http://gcc.gnu.org/onlinedocs/gcj/Invoking-gcj_002ddbtool.html
Cheers,
Mark
--
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
Join the community at http://planet.classpath.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20051110/433e2ca8/attachment-0001.sig>
More information about the Gcc-help
mailing list