cancel
Showing results for 
Search instead for 
Did you mean: 

JCo error message (worked with older JCo version)

Former Member
0 Kudos

Hello,

In the past I successfully used the JCo 2.0.7.

Now I downloaded JCo 2.1.3 and replaced the librfc32.dll and sapjcorfc.dll in system32 with the DLLs from the new JCo distribution.

My Java test program now gives the error below:

My classpath is of course correct. If I reset my DLLs to the old versions, my test program works again.

Can you help?

Michael

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

default_cpc_mode

at com.sap.mw.jco.JCO.<clinit>(Unknown Source)

at sap.idoc.JCoIDocSample1.main(JCoIDocSample1.java:32)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)

Exception in thread "main"

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Michael,

Is it possible that the old JCo library files are in the path?

Michael

Former Member
0 Kudos

Yes, I indeed I had a classpath problem in my IDE.

Thanks for your help!

Michael