[libbluray-devel] problems with JAVA

Petri Hintukainen phintuka at users.sourceforge.net
Sat May 7 19:37:16 CEST 2011


la, 2011-05-07 kello 15:13 +0200, Erik Van Grunderbeeck kirjoitti:
> >It seems that System.loadLibary() only looks for 'libname.so', there 
> >doesn't seem to be a way to make it look for 'libname.so.$major' as 
> >would be more correct.
> Thats correct. It would be better to use System.load(), since on windows the
> searchpath for LoadLibrary is also limited to the windows path 

Does System.load() require full file name with extension ? Then it needs
to know host OS type to select right file extension (libbluray.dll,
libbluray.so, libbluray.dylib, ...).

Does java side really need to load libbluray (which loads jvm) ? If yes,
it should be quite easy to resolve full path + file name of the library
and pass it to java side at initialization.


- Petri




More information about the libbluray-devel mailing list