sap JCO3.0安装缺少Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package (KB973544)

在某项目中,JAVA程序通过sap JCO3.0调用SAP RFC,由于缺少Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package (KB973544)而导致程序产生“ava.lang.UnsatisfiedLinkError: D:\tomcat\apache-tomcat-6.0.37-windows-x86_32bit\apache-tomcat-6.0.37\bin\sapjco3.dll: 由于应用程序配置不正确,应用程序未能启动。重新安装应用程序可能会纠正这个问题。”

解决方法:

如果发生下面错误可能是没有安装 latest Microsoft Visual Studio 2005 C/C++ runtime libraries 请下载

java.lang.ExceptionInInitializerError: Error getting the version of the native layer: java.lang.UnsatisfiedLinkError: E:\jco\sapjco3-NTAMD64-3.0.8\sapjco3.dll: 由于应用程序配置不正确,应用程序未能启动。重新安装应用程序可能会纠正这个问题。
 at com.sap.conn.jco.rt.MiddlewareJavaRfc.<clinit>(MiddlewareJavaRfc.java:210)
 at com.sap.conn.jco.rt.DefaultJCoRuntime.initialize(DefaultJCoRuntime.java:75)
 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)

解决方法:

UC) (NUC) indicates different starting patch levels for unicode and non unicode kernels.

Solution

1. Go to the following link:
http://www.microsoft.com/technet/security/bulletin/MS09-035.mspx
2. Scroll down the page and go to section "Affected Software".
3. Click on the following link:
Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package (KB973544)
4. Scroll down to section "Files in This Download".
5. Download one of the following platform-specific files:
For an Itanium system, download vcredist_IA64.exe
For a 64-Bit SAP system on Intel 64-Bit, download vcredist_x64.exe
For a 32-Bit SAP system on Intel 64-Bit, download vcredist_x86.exe
For an SAP system on Intel 32-Bit, download vcredist_x86.exe
6. Execute the downloaded binary by double-clicking on it and follow the instructions.

For more information, see the attached document.

 

安装成功运行sapjco3.jar

会出现成功提示


你可能感兴趣的:(C++,Microsoft,SAP,Visual,jco3.0)