[web@localhost ~]$ echo $LD_LIBRARY_PATH
[web@localhost ~]$ echo $CLASSPATH
[web@localhost ~]$ vi .bash_profile
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/.local/bin:$HOME/bin LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.jco3 CLASSPATH=$CLASSPATH:$HOME/.jco3 export PATH export LD_LIBRARY_PATH export CLASSPATH
[web@localhost ~]$ source .bash_profile
[web@localhost ~]$ java -jar .jco3/sapjco3.jar
--------------------------------------------------------------------------------------
| SAP Java Connector |
| Copyright (c) 2000-2012 SAP AG. All rights reserved. |
| Version Information |
--------------------------------------------------------------------------------------
Java Runtime:
Operating System: Linux 3.10.0-1062.el7.x86_64 for amd64
Java VM: 1.8.0_222-ea Oracle Corporation
Default charset: UTF-8
Versions:
JCo API: 3.0.9 (2012-07-19)
JCo middleware: JavaRfc 2.2.8
JCo library: 720.310
Library Paths:
Path to JCo archive: /home/web/.jco3/sapjco3.jar
Path to JCo library: /home/web/.jco3/libsapjco3.so
--------------------------------------------------------------------------------------
| Manifest |
--------------------------------------------------------------------------------------
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.4
Created-By: 5.1.028 (SAP AG)
Specification-Title: SAP Java Connector v3
Specification-Version: 3.0.9
Specification-Vendor: SAP AG, Walldorf
Implementation-Title: com.sap.conn.jco
Implementation-Version: 20120723 2132 [3.0.9 (2012-07-19)]
Implementation-Vendor-Id: com.sap
Implementation-Vendor: SAP AG, Walldorf
Main-Class: com.sap.conn.jco.rt.About
--------------------------------------------------------------------------------------
[web@localhost ~]$
https://files.cnblogs.com/files/Tty725/sapjco3-windows-64.7z
https://files.cnblogs.com/files/Tty725/sapjco3-linux-64.7z
Windows下配置JCo3环境:
1、把sapjco3-windows-64文件夹里两个文件扔到指定目录,比如我,就扔到:D:\scode\java\jco
2、在PATH环境变量中指定JCo的安装目录,比如我的就是:D:\scode\java\jco
3、CLASSPASS 指定 安装目录\sapjco3.jar,比如我的就是:D:\scode\java\jco\ sapjco3.jar
打开 cmd 到安装目录 执行java -jar sapjco3.jar,安装成功你可以看到弹出窗口信息。
欢迎转载,但请注明内容的来源或URL;
“[转]”篇章,必须保留原始来源且勿添加本blog指向。