简体   繁体   中英

UnsatisfiedLinkError in Netbeans when calling native DLL after Windows 10 upgrade

After upgrading from Windows 7 to Windows 10, my Netbeans Project throws UnsatisfiedLinkErrors when calling native DLL's:

Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\SVN\SoftwareProjectsV2\Modules\PTS\trunk\SimController_JNIWrapper.dll: Can't find dependent libraries

Running my Java-Program outside of Netbeans works just fine, only Netbeans seems to have a problem finding the DLL's.

I already added -Djava.library.path= to the VM Options without improvement.

Has somebody experienced something similar and could give me a hint?

After a clean reinstall of Windows 10, Java, MSVC libs, Netbeans and creating a new project from my source files and DLL's, I still can't run my project from NetBeans.

Tested my project with Eclipse and it works, so I'm switching to Eclipse with all my projects.

Not the solution I had in mind, but at least I can work again.


After adding my projects rootfolder, which contains my dll's, to the PATH environment variable, I can use NetBeans again. But this is also not the ideal solution, since I have different projects, using different versions of the same dll.

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