Skip to Main Content

Java Programming

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!

Trouble loading jnilib in mac os x

807589Dec 30 2008 — edited Jan 14 2009
Ok, so I'm having some trouble getting a jnilib to load in mac osx, I've tried many different ways and the result is always an unsatisfied link error. I've done jni before getting it to work with both linux/windows(xp/vista) and had no/few problems, but for some reason I'm having a hell of a time with mac osx.

I've tried using
System.load("/System/Library/Java/Extentions/libskype.jnilib");
(Yes the libskype.jnilib is actually in the folder, I just re-checked)

I've also tried using
System.loadLibrary("libskype");
System.loadLibrary("libskype.jnilib");
I printed out System.getProperty("java.library.path") and the libskype.jnilib was on the path,
I also tried starting the program with -Djava.libary.path="(path_to_libskype.jnilib)"
but that didn't help.
Anyone have any suggestions?
Could the libskype.jnilib file be corrupt/broken? Would the jvm give me a different error message if it was corrupt?

Thanks a ton!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 11 2009
Added on Dec 30 2008
13 comments
1,599 views