Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to fix UnsatisfiedLinkError in Mac OS X ?

843829Apr 7 2009 — edited Apr 7 2009
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 5 2009
Added on Apr 7 2009
1 comment
646 views