This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: How to link with jars
- To: Torsten Rüger <torsten dot rueger at firsthop dot com>
- Subject: Re: How to link with jars
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Mon, 04 Dec 2000 22:38:46 +1300
- CC: Java <java-discuss at sources dot redhat dot com>
- References: <3A2B6365.D1251F5B@firsthop.com>
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 ]