This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How to link with jars


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 ]



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]