2

我正在尝试将 SAP JCO3 库放到具有操作系统“Win 2003 Server”的工作服务器上。SAP JCO3 库在我的具有操作系统“Windows 7”的本地主机上运行良好。但是,当我在我的工作服务器上执行相同的安装过程并尝试使用这些库时,我收到了这个错误,

> java.lang.ExceptionInInitializerError: Error getting the version of
> the native layer:
> java.lang.UnsatisfiedLinkError:***********\sapjco3.dll: This
> application has failed to start because the application configuration
> is incorrect. Reinstalling the application may fix this problem

谁能帮我解决这个问题。提前致谢。

4

2 回答 2

2

问题是因为 Visual 2005 C++ 运行时可再发行。sapjco3.dll 要求的版本至少应为 8.0.50727.4053 才能工作,但是我的工作服务器上的版本远低于此版本并导致此问题。然后我要求我的系统管理员更新它。现在它可以工作了。

于 2014-03-06T18:22:58.590 回答
1

The sapjco jar depends on the sapjco3.dll native library.

Your local workstation must have that .dll somewhere where java can get at it.

I'd see where the dll is located on your local workstation, and figure out how it's being referenced, then see if you can replicate that on the server.

There are different versions of the .dll for 32-bit and 64-bit windows, so it's possible that you may need a different version on the server than you need on your local workstation.

于 2014-03-06T15:04:15.320 回答