简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM