Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JNI ... UnsatisfiedLinkError



no that's not a lie
because JVM is looking for the libcvodeJNI.jnilib
not for libcvodeJNI.dylib



On Jun 14, 2005, at 12:26 AM, Frank Bergmann wrote:

Hello List,

I'm currently doing my first steps in JNI under Mac OS X. I was positively
surprised that my Win32 JNI code compiled without any problems on Tiger.
That almost made me suspicious. But happy with my success I copied the
created library ('libcvodeJNI.dylib') to the application directory and ran
my Jar file.


But of course it stumbled over 'System.loadLibrary("cvodeJNI")'. Upon which
I tried finding the error. Reading:


http://developer.apple.com/technotes/tn/tn1155.html

brought me to wildly copying my library through various locations:

    /Library/Java/Extensions
    /~lib/

But to no avail. Remembering a similar issue with python on OSX I started
renaming my library file to 'cvodeJNI.so' and finally (desperate
now) to 'cvodeJNI' still no success.


I hope you can help me ... thanks

Frank

BTW: I guess the exception is not really important but here it is
anyway:

"java.lang.UnsatisfiedLinkError: no cvodeJNI in java.library.path"

Although this is definitely a lie ...

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Dmitry Markman

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >JNI ... UnsatisfiedLinkError (From: "Frank Bergmann" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.