Showing results for 
Search instead for 
Did you mean: 

Problems with JCo

Former Member
0 Kudos


i wrote a standlone java client that uses Jco to connect to SAP . it worked fine till recently.But now its giving a


java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer ''

JCO.nativeInit(): Could not initialize dynamic link library librfc. <b>Found version "620.0.1844" but required at least version "640.0.76"</b>.


at com.pass.Connect.main(

Exception in thread "main" .

i can see that its some version confilct but how did it work till now. i didnt change any of the two dll's or the sapjar jar file



Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos


Let me know, are you programming this in NWDS or out of it.

And if in the former, have you included sapjco.jar in the Build path.

Former Member
0 Kudos

Hi Guru,

I think the dll refrence is pointing to some other version of the file in your system. May be you would have installed something and that would have changed the refrence in your system. Please search for all the librfc.dll files in your system and take the latest file i.e latest version file and put that in your jco file directory.

Please reply if this doesn't works.

Best regards,


PS: Reward points for helpfull replies.