• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exception in thread "main" java.lang.UnsatisfiedLinkErrorl: Can´t find dependent libraries

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guys,

I'm trying to run a program in java for the following command:

java -Djava.library.path = "C:\Nitgen" -jar C:\Nitgen\Busca3-N_java.jar C:\Nitgen\ arquivo.rec

But is showing the following error message:

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Nitgen\NBioBSPJNI.dll: Can't find dependent libraries

The DLL is in the same program directory.

I have no idea what is happening.

How to solve it?

Thanks,

Fernando
 
Ranch Hand
Posts: 417
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

1) Make sure the dll is in C:\Nitgen\NBioBSPJNI.dll.

2) Make sure case sensitiveness is respected for the file names.

3) NBioBSPJNI.dll might be dependent on other dlls, hence the message: Can't find dependent libraries

Do you have any more detailed stack trace or error log you could share with us?

 
Bartender
Posts: 689
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are there any instructions with that software? It looks to me like it has found the DLL in the library path, but the DLL has dependencies of its own that it can't find.

I'm fairly certain you would get a different error if it was unable to find the DLL that Java is trying to load. I'm not sure if windows has a way to tell you what libraries a DLL depends upon and whether it can find them.
 
Mike. J. Thompson
Bartender
Posts: 689
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Beaten to it!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic