SAPJCO3升级3.1后报错java.lang.UnsatisfiedLinkError: sapjco3.dll解决

部署JCO3.0版本不报错

部署JCO3.1版本执行sapjco3.jar报错如下

java.lang.ExceptionInInitializerError: JCo initialization failed with java.lang.UnsatisfiedLinkError: C:\SAPJCO\sapjco3.dll: Can't find dependent libraries
	at com.sap.conn.jco.rt.MiddlewareJavaRfc.<clinit>(MiddlewareJavaRfc.java:165)
	at com.sap.conn.jco.rt.DefaultJCoRuntime.initialize(DefaultJCoRuntime.java:78)
	at com.sap.conn.jco.rt.JCoRuntimeFactory.<clinit>(JCoRuntimeFactory.java:23)
	at com.sap.conn.jco.rt.About.<init>(About.java:42)
	at com.sap.conn.jco.rt.About.main(About.java:81)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.sap.conn.jco.About.main(About.java:42)

原因

SAPJCO官方站点
The SAP Java Connector 3.1 requires a JDK/JRE 8 or 11. In addition, the SAP Java Connector 3.1 running on Windows operating systems requires the Microsoft Visual Studio 2013 C/C++ runtime libraries to be installed on the system.
JCO3.1版本需要8\11版本JRE,并需要安装MS VS2013 C++运行库

效果

安装完运行库重新运行sapjco3.jar,成功
在这里插入图片描述

posted on 2020-05-25 15:53  路过君  阅读(576)  评论(0编辑  收藏  举报

导航