how to fix UnsatisfiedLinkError in Mac OS X ?
843829Apr 7 2009 — edited Apr 7 2009Hi,
I am using JNI library for my application
[java] java.lang.UnsatisfiedLinkError: /Users/Jhon/workspace/Demo1/.../libDemo.jnilib:
[java] at java.lang.ClassLoader$NativeLibrary.load(Native Method)
[java] at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
[java] at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1739)
[java] at java.lang.Runtime.loadLibrary0(Runtime.java:823)
I am getting the above error in the Mac OS X 10.5.4
I am getting the same error even i set java.library.path before I call System.loadLibrary("Demo")
I also set '/Users/Jhon/workspace/Demo1/...' in DYLD_LIBRARY_PATH environment variable.. but still issue exists
My OS having jdk 1.6 installed
http://forums.sun.com/thread.jspa?threadID=5361228&tstart=1
from this link I thought my library is 32 bit library and mac jdk 1.6 requires 64 bit library
If this is the problem, how do I resolve this issue?
Thanking you
Jhon