繁体   English   中英

在java中加载DLL文件

[英]Loading DLL file in java

在RCP应用程序中使用System.loadLibrary方法加载dll文件时,只要我从Eclipse本身启动应用程序,它就可以正常工作。 但是当导出RCP应用程序并从导出的代码启动时,我收到此异常:

ERROR - Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help. Try using a 32 bit JRE also.
java.lang.UnsatisfiedLinkError: D:\ExportTest\eclipse\plugins\<application_name>\ext\securityinterfaceX86\SecurityInterface-x86.dll: Can't find dependent libraries

您正在从64位JVM加载32位C ++二进制文件。 您需要使用32位JVM或者使用混合模式JVM。 使用Eclipse使用的相同JRE,你会没事的。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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