This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes JNI: UnsatisfiedLinkError: Can't find dependent libraries Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JNI: UnsatisfiedLinkError: Can Watch "JNI: UnsatisfiedLinkError: Can New topic
Author

JNI: UnsatisfiedLinkError: Can't find dependent libraries

Bob Mearns
Greenhorn

Joined: Sep 24, 2007
Posts: 1
Getting "UnsatisfiedLinkError ... Can't find dependent libraries". My native code calls some Windows functions and thus the DLL containing the native code is dependent on tons of Windows DLLs. No problem - the PATH includes c:\Windows\system32 where all the Windows DLLs live.

Running the depends tool on my DLL reveals that one of the Windows DLLs (mpr.dll) has an unresolved reference - the specific error message is "... unresolved import due to a missing export function in a delay-load dependent module". Searching the net for information on that error suggests that it's not a "real" problem. And that seems to be true, as I can use my same native code in a native application, depends gives the same error on the native app as it does on my DLL, but the app runs fine.

So I'm suspecting that the UnsatisfiedLinkError is a result of the unresolved import in MPR.DLL - the VM must be noticing that and throwing the error. Is there any way around this?

Thanks,
Bob
Hamlet D'Arcy
Greenhorn

Joined: Nov 05, 2009
Posts: 1
... and two years later I have the same issue. JNI... sigh...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JNI: UnsatisfiedLinkError: Can't find dependent libraries
 
Similar Threads
UnsatisfiedLinkError
UnsatisfiedLinkError Exception with JNI
UnsatisfiedLinkError
Shared libraries and unsatisfiedlinkerror
UnsatisfiedLinkError in my first JNI program