Re: JNI unsatisfied link error
Tuesday, June 26, 2007 11:20 AM
Seems like a load library path issue. In Java you can load a native library:
1.System.loadLibrary(String) and System.load(String). Which allows you to load the library from the "default" path.
2. System.load() allows us to load a library from anywhere via its absolute path.
For case 1, make sure java.library.path is correctly set and thats where you have your native libs. /jre/bin is always in the library path, so if you want to do a quick test throw your libs there and try to load.
For the second option, if you go System.Load you can put your libraries anywhere and load them with absolute path. Note, if you have dependent libraries, i.e a.so depends on b.so then you have to load b.so first before you can load a.so
I hope this helps.