This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: gcj and gij
- To: Justin Urbanski <urbanski at nortelnetworks dot com>
- Subject: Re: gcj and gij
- From: Jeff Sturm <jsturm at detroit dot appnet dot com>
- Date: Thu, 20 Jul 2000 22:33:45 -0400
- CC: java-discuss at sources dot redhat dot com, Andrew Zahra <andzahra at nortelnetworks dot com>
- Organization: AppNet
- References: <3977A056.81C8D20A@asiapacificm01.nt.com>
Justin Urbanski wrote:
> I am currently trying to build my application with an external XML parser (jar file). This XML parser uses serialization which GCJ does not support, therefore I get link errors. Would it be possible to somehow use GIJ to get around this. If so, how?
Are you using a released (2.95.x) libgcj, or snapshot? Recent snapshots
have serialization mostly implemented. What classes are you missing?
Gij won't help with your link errors. It's just another way to run Java
programs (compiled or bytecode) with libgcj.
> If I build libgcj with --enable-interpreter, does this ignore undefined references, which would therefore allow me to build my executable, but at runtime GIJ will find the jar file in my classpath?
The interpreter should find your jar file, but will probably only move
the error from compile time to runtime as soon as it tries to invoke the
parser. There's nothing it can do about missing classes.
If you have the chance to use a recent gcj/libgcj, let us know how it
goes.
--
Jeff Sturm
jeff.sturm@appnet.com