Confused about jar/lib usage
Michael Koch
konqueror@gmx.de
Tue Feb 3 20:55:00 GMT 2004
On Tue, Feb 03, 2004 at 12:12:36PM -0800, Fx Mx wrote:
> > 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.
>> This clarifies things, but i'm having trouble
> generating the said library files. I'm interested in
> compiling them for a scientific library, but even when
> I tried to compile libgcj.jar, I get the following
> messages:
> [~]# /usr/local/bin/gcj libgcj-3.3.2.jar -o
> libgcj-3.3.2.so
Why do you want to do this at all ? libgcj-3.3.2.so should be already
installed on your system and is automatically linked when you compile
with gcj-3.3.2. There is really no really no reason to do this yourself.
Michael
More information about the Java
mailing list