Friday, 15 August 2014

java - System.loadLibrary stuck while reading .so file -



java - System.loadLibrary stuck while reading .so file -

i need include native library applet. works on windows .dll, not work on linux .so. signed applet, resources , created appropriate jnlp file:

<resources os="windows" arch="x86_64"> <nativelib href="dll/com/windows_x64/test.jar"/> </resources> <resources os="linux" arch="amd64"> <nativelib href="dll/com/linux_x64/test.jar"/> </resources> <resources os="linux" arch="x86_64"> <nativelib href="dll/com/linux_x64/test.jar"/> </resources> <resources os="linux" arch="x86"> <nativelib href="dll/com/linux_x32/test.jar"/> </resources> <resources os="linux" arch="i386"> <nativelib href="dll/com/linux_x32/test.jar"/> </resources>

test.jar linux contains test.so file , meta-inf sign data.

and applet stuck on next row without exception: system.loadlibrary("test");

could please help with/give me prompt solve issue? please allow me know if need provide more helpful info?

i checked next topic: java system.loadlibrary phone call on linux freezes , did next test: created separate main class , seek load .so there , works ok.

test.jar linux contains test.so file , meta-inf sign data.

the name of lib should libtest.so.

java ubuntu jnlp japplet loadlibrary

No comments:

Post a Comment