简体   繁体   English

Windows 10升级后调用本机DLL时,Netbeans中出现UnsatisfiedLinkError

[英]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.

相关问题 调用本机方法时返回java.lang.UnsatisfiedLinkError - java.lang.UnsatisfiedLinkError returned when calling native method OSGi服务:调用DLL的java.lang.UnsatisfiedLinkError —将DLL称为单元测试时没有错误 - OSGi service: java.lang.UnsatisfiedLinkError calling DLL — NO error when DLL called as unit test 如何在调用JNA Native.loadLibrary之前检查DLL / SO,以避免UnsatisfiedLinkError - How to check for DLL/SO before calling JNA Native.loadLibrary to avoid UnsatisfiedLinkError UnsatisfiedLinkError-本机库-jnidispatch.dll - UnsatisfiedLinkError - Native Library - jnidispatch.dll 从Java调用C ++ DLL方法时,线程“ main”中的异常java.lang.UnsatisfiedLinkError - Exception in thread “main” java.lang.UnsatisfiedLinkError When Calling a C++ DLL Method from Java 调用new World()时出现UnsatisfiedLinkError - UnsatisfiedLinkError when calling new World() 在Windows 7中调用JNI dll时Tomcat崩溃 - Tomcat crashes when calling JNI dll in windows 7 在 WIndows 10 中安装 Netbeans - Install Netbeans in WIndows 10 UnsatisfiedLinkError using naoqi Java SDK on Windows 10 - UnsatisfiedLinkError using naoqi Java SDK on Windows 10 UnsatisfiedLinkError访问被拒绝Java Windows 10 - UnsatisfiedLinkError Access is denied Java Windows 10
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM