[英]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: 从Windows 7升级到Windows 10后,我的Netbeans项目在调用本机DLL时引发UnsatisfiedLinkErrors:
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. 在Netbeans外部运行我的Java程序可以很好地工作,只有Netbeans似乎在查找DLL时有问题。
I already added -Djava.library.path= to the VM Options without improvement. 我已经将-Djava.library.path =添加到VM Options中,没有进行任何改进。
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. 全新重新安装Windows 10,Java,MSVC库,Netbeans并从源文件和DLL创建新项目后,我仍然无法从NetBeans运行我的项目。
Tested my project with Eclipse and it works, so I'm switching to Eclipse with all my projects. 使用Eclipse测试了我的项目,它可以正常工作,因此我将所有项目都切换到Eclipse。
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. 将包含dll的项目rootfolder添加到PATH环境变量后,可以再次使用NetBeans。 But this is also not the ideal solution, since I have different projects, using different versions of the same dll.
但这也不是理想的解决方案,因为我有不同的项目,并且使用同一dll的不同版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.