How to link with jars
Bryce McKinlay
bryce@albatross.co.nz
Mon Dec 4 01:38:00 GMT 2000
Torsten Rüger wrote:
> So I need to link and run with jars (or .class) files, I guess in my
> CLASSPATH, right?
>> At the moment though I don't even get an executable, because the link
> throws errors (undefined references to what's in the jar's).
Well, you can't have native code depend directly on interpreted code. You
need to use Class.forName().
> So what do I do? Also, do I have to configure my libgcj to
> run/interpret the class files ?
If you're platform is i?86-linux-gnu then the interpreter should be
configured automatically. You can test it by running "gij".
regards
[ bryce ]
More information about the Java
mailing list