• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

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!
 
Yeah, but does being a ninja come with a dental plan? And what about this tiny ad?
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic