gcj and gij

Jeff Sturm jsturm@detroit.appnet.com
Thu Jul 20 19:36:00 GMT 2000


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


More information about the Java mailing list