Skip to Content
0
Former Member
Apr 04, 2006 at 11:31 AM

Java with sapjco.jar connection SAP is errors

69 Views

Exception in thread "main" java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'

JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc. Found version "6.30.0 (2003-03-14)" but required version "2.1.6 (2005-06-20)".

at com.sap.mw.jco.JCO.<clinit>(JCO.java:738)

at com.phaag.sql.DataBaseSAP.getConnect(DataBaseSAP.java:21)

at com.phaag.sql.DataBaseSAP.getConnection(DataBaseSAP.java:14)

at com.phaag.sql.DataBaseSAP.main(DataBaseSAP.java:38)

my OS :windows 2000 server

My JDK: jdk1.5.0_06

Develop Kit:Eclipse 3.1.2

classpath :.;D:\Java\jdk1.5.0_06\lib;D:\javatest\sapjco.jar;

C:\WINNT\system32\sapjcorfc.dll

C:\WINNT\system32\librfc32.dll

D:\Tomcat 5.5\webapps\ROOT\WEB-INF\lib\sapjco.jar

Error is WHERE