Search code examples
javamavenwindows-7intellij-ideaunsatisfiedlinkerror

IntelliJ java.lang.UnsatisfiedLinkError: C:\User\...\java_bridge.dll: Can't find dependent libraries


I'm trying to import a IntelliJ java web application project (Maven Project) from a linux system to a Windows system. This java program relies on 2 external libraries to run.

On the linux system both libraries load fine when I run my test cases (and pass successful), however when I moved over to the windows system, 1 of the libraries no longer works properly (and yes i did make sure to get the approproaite windows binaries).

I keep getting the error

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\Admin\Desktop\SAINT\Packages\cellml-sdk-1.9\lib\cellml_java_bridge.dll: Can't find dependent libraries  

At this point I'm not sure what I'm doing wrong, because the .dll is present in the directory. The location of the .dll is also present in the windows PATH variable, and I have specified to java using -Djava.library.path=C:\Users\Admin\Desktop\SAINT\Packages\cellml-sdk-1.9\lib

Thanks


Solution

  • look in the eventlog for windows side by side (SxS) messages. They will likely point to the missing dll. If not, use dependency walker