JNA UnsatisfiedLinkError异常 [英] JNA UnsatisfiedLinkError exception
问题描述
我正在尝试部署使用JNA库调用本机调用的应用程序,但出现以下异常. 线程主"中的异常java.lang.UnsatisfiedLinkError:无法加载库'myCustomDLL':在资源路径([myproject/target/classes/,...)中找不到本机库(win32-x86-64/myCustomDLL.dll)一些罐子...])
I am trying to deploy my application that invokes native calls using JNA library, but I get the following exception. Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'myCustomDLL': Native library (win32-x86-64/myCustomDLL.dll) not found in resource path ([myproject/target/classes/, ...some jars...])
我需要做什么才能正确调用该函数?
What do I need to do in order to invoke the function correctly?
非常感谢任何帮助
推荐答案
实际上,我找到了答案.基本上,我需要安装Microsoft Visual C ++可再发行组件包才能安装JNA运行所需的所有必需DLL.感谢您对此问题的其他答复.
Actually I found the answer to this. Basically, I needed to install Microsoft Visual C++ Redistributable package to install all the necessary DLLs needed for JNA to work. Thanks for other responses to this question.
这篇关于JNA UnsatisfiedLinkError异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!