How to convert a jar into so file and use it ?

Andrew Haley aph@redhat.com
Wed Jun 10 11:06:00 GMT 2009


David Michel wrote:
> Thanks !
> 
> But I'm a bit puzzled by this
> 
> ...-L. -lhello --classpath=.:hello/Hello.jar...
> 
>  Why does it need both the libhello.so and the Hello.jar file ?

The Hello.jar file is used at compile time to check the names and types
of all the classes you're going to use.  It's not used at runtime.

Andrew.



More information about the Java mailing list