JNI: cannot locate the library
Thanks to everyone who has time to answer my questions! Really appreciated.
And now the next question :)
Why doesn't JNI see the library, though the path seems to be right?
And now the next question :)
Why doesn't JNI see the library, though the path seems to be right?
public TestAppController()
{
System.loadLibrary(norduGridLibrary);
}
[ilja@guest3 src]$ $JAVA_HOME/bin/java -Djava.library.path=/home/ilja/jni/ngui/native org/testapp/test/Test
Library path: /home/ilja/jni/ngui/native
And the library name is: NGC
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/ilja/jni/ngui/native/libNGC.so: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1739)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1664)
at java.lang.Runtime.loadLibrary0(Runtime.java:821)
at java.lang.System.loadLibrary(System.java:991)
at org.nordugrid.ui.TestAppController.(TestAppController.java:29)
at org.nordugrid.test.Test.ngsubTest(Test.java:23)
at org.nordugrid.test.Test.main(Test.java:17)
[ilja@guest3 src]$ l /home/ilja/jni/ngui/native | grep libNGC.so libNGC.so*
