Re: Hint library name (was Re: Naming convention for Java gluelib

2009-06-10 Thread Matthew Johnson
On Wed Jun 10 09:14, Mathieu Malaterre wrote: > Can I add something like: > > ... > System.loadLibrary("foojni"); Ah, yes, that is, in fact, how it works; you have to do this in order to load a native library. It will then look for lib${name}.so in $LD_LIBRARY_PATH and the java.library.path J

Re: Hint library name (was Re: Naming convention for Java gluelib ?)

2009-06-10 Thread Mathieu Malaterre
On Wed, Jun 10, 2009 at 12:23 AM, Matthew Johnson wrote: > On Tue Jun 09 18:57, Mathieu Malaterre wrote: >> Quick question, in C# it is possible to hint the wrapped layer what is >> the gluelib name. Does such mechanism exist in Java ? For instance my >> jar file is called 'gdcm.jar' and the glueli

Re: Hint library name (was Re: Naming convention for Java gluelib

2009-06-10 Thread Matthew Johnson
On Wed Jun 10 14:32, Mathieu Malaterre wrote: > > Thus application programmer do not need to know the actual name I > choose for the jni layer :) > Yes, the jar part of the glue layer must load the library that jni part of the glue layer is in so that application writers don't need to know whethe

Re: Hint library name (was Re: Naming convention for Java gluelib

2009-06-10 Thread Mathieu Malaterre
On Wed, Jun 10, 2009 at 9:18 AM, Matthew Johnson wrote: > On Wed Jun 10 09:14, Mathieu Malaterre wrote: >> Can I add something like: >> >> ... >> System.loadLibrary("foojni"); > > Ah, yes, that is, in fact, how it works; you have to do this in order to > load a native library. It will then look