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
look in the eventlog for windows side by side (SxS) messages. They will likely point to the missing dll. If not, use dependency walker
The error message says: Can't find dependent libraries. The DLL you have needs other DLLs, and they need to be in a directory located in the PATH environment variable, not java.library.path.
To see what the dependencies are, you can use objdump.
You haven't been adding full paths to .dll files to PATH, have you? Just put the directories containing the dependents into path.