on 04-04-2006 12:31 PM
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
Hi cj:
I think that you have some things to do.
See,
1) the JDK you are using for JCO i think is not supported for JCO.
I think that your error message is clear, you have to down up of version...
Could not initialize dynamic link library sapjcorfc. Found version "6.30.0 (2003-03-14)" but required version "2.1.6 (2005-06-20)".
For more informatin see:
http://etower.towersemi.com/irj/portalapps/com.sap.portal.pdk.srv.jcoconnection/docs/jcobasics.html
Good luck
Joshua
Message was edited by: Josue Cruz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you sure you are using a proper sapjco.jar file and the other 2 required DLL files i.e. sapjcorfc.dll and librfc32.dll??
You will need to make sure that all these files you are using are in sync with your R/3 version. and the PATH variable on your local system should have the entry for the folder where your DLLs are placed.
Hope this helps.
Amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.