我有一个需要在 Java 应用程序中使用的 DLL。这已经使用 Windows 32 位服务包 3 制作,因此 DLL 可以正常工作。现在我有另一台具有相同配置的机器需要使用它。
当我尝试在 java 中加载 lib 时,会出现以下错误:
Exception in thread "main" java.lang.UnsatisfiedLinkError: ARWAPI32 (This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. )
当我在第一台机器上用Dependency Walker打开 DLL 时,没有问题发生,但是当我在机器上打开 DLL 时,它不起作用
Error: The Side-by-Side configuration information for "c:\ARWAPI32.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).
这意味着什么?我尝试使用命令Regsvr32注册 dll,但显示了相同的错误。
LoadLibrary("c:\ARWAPI32.DLL") failed - This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.