The current version of the sap jco connector enforces the name of the containing jar at runtime. This will lead to exceptions, if it doesn\'t match the name (sapjco3.jar). <
I had the same issue, and below is how I fixed it (in short work around it): 1. Run the command in command prompt
mvn install:install-file
-Dfile=sapjco3.jar
-DgroupId=com.company.sap
-DartifactId=com.sap.conn.jco.sapjco
-Dversion=1.0
-Dpackaging=jar
Download this dependency from maven as shown below:
This work around would avoid the sapjco3 error:
if (!jarname.equals("sapjco3.jar")
&& !jarname.startsWith("com.sap.conn.jco")
&& !jarname.equals("sapjco3_IDE.jar")
&& Package.getPackage("org.apache.maven.surefire.booter") == null
&& Package.getPackage("org.eclipse.jdt.internal.junit.runner") == null) {
throw new ExceptionInInitializerError("Illegal JCo archive \"" + jarname + "\". It is not allowed to rename or repackage the original archive \"" + "sapjco3.jar" + "\".");
}