Confused about jar/lib usage

Fx Mx lard_power@yahoo.com
Tue Feb 3 20:12:00 GMT 2004


> 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
java/io/ObjectOutputStream.java: In class
`java.io.ObjectOutputStream':
java/io/ObjectOutputStream.java: In method
`java.io.ObjectOutputStream.writeObject(java.lang.Object)':
java/io/ObjectOutputStream.java:376: warning:
unreachable bytecode from 905 to before 911
java/lang/reflect/Proxy.java: In class
`java.lang.reflect.Proxy':
java/lang/reflect/Proxy.java: In method
`java.lang.reflect.Proxy.getProxyClass(java.lang.ClassLoader,java.lang.Class[])':
java/lang/reflect/Proxy.java:268: warning: unreachable
bytecode from 38 to before 46
java/lang/Class.java: In class `java.lang.Class':
java/lang/Class.java: In method
`java.lang.Class.desiredAssertionStatus()':
java/lang/Class.java:290: warning: unreachable
bytecode from 77 to before 80
java/lang/Class.java:312: warning: unreachable
bytecode from 237 to before 240
java/lang/System.java: In class `java.lang.System':
java/lang/System.java: In method
`java.lang.System.runFinalizersOnExit(boolean)'
etc, etc.
Of course it was made at some point during gcc
building, but I couldn't find anything informative in
the makefile. 
Thanks in advance, 
Fx
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /