java.lang.UnsatisfiedLinkError
I am using a very simple "Hello World" JNI example. It can be found googling I'm sure. Really nothing to it. However when I compile, I get that error.
wk88:/workspace/newJNI/ jv -Djava.library.path=. HelloWorld Exception in thread "main" java.lang.UnsatisfiedLinkError: /workspace/newJNI/libHelloWorld.so: /workspace/newJNI/libHelloWorld.so: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at HelloWorld.<clinit>(HelloWorld.java:7)
I am running on a CentOS system with an AMD X86_64 bit arch.
However, I'm using gcc to compile my code. Can't get the powers that be to authorize the use of JDK yet...
I'm thinking it's compiling the code with the x86_64 bit arch, yet we only have JRE 1.6.0_01 for 32 bit installed. Therefore it cannot properly link the shared object to the java program.
Any suggestions?
Thanks

