cancel
Showing results for 
Search instead for 
Did you mean: 

JCo error

Former Member
0 Kudos

My Java program using JCo works perfectly on my old laptop, but after I moved everything to the new laptop, and it doesn't work any more on the new laptop. It gave me the following error, but everything is the same. I really don't get it. I tried everything like reinstalled Websphere Studio Application Development, redownloaded the JCo and even rebuilt my Java project, but still have the same error. Please help.

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

JCO.nativeInit(): Could not initialize dynamic link library librfc. Found version "640.0.128" but required at least version "640.0.161".

Accepted Solutions (1)

Accepted Solutions (1)

Vlado
Advisor
Advisor
0 Kudos

Hi Joanna,

Apparently, you have an old version of librfc.dll in your system32 folder (or in some other location part of your PATH environment variable). Please also check Rudolph's reply "WELL OUTLINED TUTORIAL HOW TO INSTALL AND CONFIGURE JCO ON WIN 2000 & XP" in thread.

Hope it helps!

-Vladimir

Former Member
0 Kudos

Vladimir,

Yeah, I just found that out. After I recopied the dll file to system32 folder, it worked. Not sure why I had to recopy it because the pc tech guy already brought the dll file over from my old machine, and they should be exactly the same. Anyway, it worked. Thank you very much for your help. You have a good day:-)

Joanna

Answers (0)