Project Jigsaw goals and requirements

thiebault at artenum.com thiebault at artenum.com
Thu Jun 2 08:40:39 PDT 2011


Le jeu  2/06/11 17:30, "Richard S. Hall" richard.s.hall at oracle.com a écrit:
> To be precise, this is not really an OSGi issue, but a more general one
> 
about native library dependencies...Java can only intercept native 
> library load requests coming from Java code. Arbitrary native libraries
> 
that have dependencies on other native libraries cannot be intercepted
> 
by Java and automatically loaded by the JVM. The procedure you describe
> 
above is simply a workaround.

When I use the same native library (i.e. VTK) in a pure Java approach, I only need to call System.loadLibrary() on the top level libraries, not all their dependencies (http://dev.artenum.com/projects/cassandra/forum/how-to-use-eclipse-
and-vtk), this is why I thought it was somehow OSGi related, but I guess this is a little off-topic :-).

What I wanted to point out is that the use of native libraries in Java modules and the wrapping of such native libs in a module should be as simple as possible.

Kind regards,

Ben




More information about the jigsaw-dev mailing list