• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

JNI: UnsatisfiedLinkError: Can't find dependent libraries

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
... and two years later I have the same issue. JNI... sigh...
 
I knew I would regret that burrito. But this tiny ad has never caused regrets:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic