sap JCO3.0安装时遇到的问题详解编程语言

There are different distribution packages for various JRE versions and hardware processors available:

  • sapjco3-ntintel-3.0.8.zip for a 32-bit JRE running on a 32- or 64-bit AMD or INTEL x86 or a 64-bit INTEL Itanium processor
  • sapjco3-ntia64-3.0.8.zip for a 64-bit JRE running on a 64-bit INTEL Itanium processor
  • sapjco3-ntamd64-3.0.8.zip for a 64-bit JRE running on a 64-bit AMD or INTEL x86 processor

Note: Before installing JCo, please install the latest Microsoft Visual Studio 2005 C/C++ runtime libraries as described in note 684106.

To install JCo for Windows unzip the appropriate distribution package into an arbitrary directory {sapjco3-install-path}.

Note: Do not copy the sapjco3.dll neither into the {windows-dir}/system32 nor into the {windows-dir}/SysWOW64 directory. This will break the operability of other JCo versions that are already installed on the same system. Furthermore you would risk that the current installation also would not work anymore, if thesapjco3.dll gets replaced in the respective Windows system directory in the future.

Then add {sapjco3-install-path} to the PATH environment variable.
Finally, add {sapjco3-install-path}/sapjco3.jar to your CLASSPATH environment variable.

安装时候请注意以上红色字体部分.

如果发生下面错误可能是没有安装 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:
IT虾米网
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

会出现成功提示

原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/20074.html

(0)
上一篇 2021年7月19日
下一篇 2021年7月19日

相关推荐

发表回复

登录后才能评论