//本地仓库引入JAR文件
mvn install:install-file -DgroupId=com.sap -DartifactId=jco3 -Dversion=3.0.8 -Dpackaging=jar -Dfile=E:\work\springboot\jco\sapjco3.jar




<dependency>
    <groupId>com.sap</groupId>
    <artifactId>jco3</artifactId>
    <version>3.0.8</version>
</dependency>


拷贝jco.dll文件到system32目录
java.lang.ExceptionInInitializerError: Native library sapjco3 is too old. Found library C:\Windows\System32\sapjco3.dll has version "720.63", but required is at least version "720.94".


特别注意:


1、system32添加sapjco3.dll

2、tomcat bin下添加sapjco3.dll

3、项目中添加sapjco3.jar 包



本文转载:CSDN博客