This is the mail archive of the java@gcc.gnu.org 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]
Other format: [Raw text]

Re: Confused about jar/lib usage


>>>>> "Ray" == Ray Auge <rayauge@doublebite.com> writes:

Ray> I'm a little confused about the referencing of jars. Do I (or do I NOT)
Ray> need to have the natively compiled version of the jar accessible to the
Ray> program after compilation?

With the current gcj, the linking model is basically C's.
So, if your program references a class, you must have a gcj-compiled
version of that class available at link time.  If you compile a .jar
to a shared library, as is the most common approach, then you must
have the resulting .so available at runtime.  You can link
statically, but that is tricky with gcj; the list archives are full
of various gotchas and workarounds.

Tom


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