I have a requirement of connecting to SAP system from Java. I got know about JCo library. I downloaded library, but along with jar I got a .dll file also. I placed the jar and dll in a separate folder and in dependency of pom.xml I've given custom path.
From eclipse I am able to run the application and get data from SAP system. But when I'm trying to deploy the application in tomcat I am getting
java.lang.NoClassDefFoundError: com/sap/conn/jco/JCoException
I have added sapjco3.jar file to tomcat's lib folder and sapjco3.dll file in java/jre/bin folder.
my pom.xml :
<dependency>
<groupId>sap.table</groupId>
<artifactId>sap.table</artifactId>
<version>3.1.2</version>
<scope>system</scope>
<systemPath>${basedir}/ext_jars/sapjco3.jar</systemPath>
</dependency>
Please help me with this. Thanks in Advance, Kranthi.