cancel
Showing results for 
Search instead for 
Did you mean: 

Strange errors using JCo / differences in JCo versions

Former Member
0 Kudos

Hi there,

I have a small java programm that calls a few function modules using JCo (stand alone version). The programs work fine until here.

Now I'm trying to migrate the solution to WAS Java 700 and I get a strange error from the WAS:

java.lang.NoClassDefFoundError: com/sap/mw/jco/JCO$Record

I suppose, that the problem depends on the sapjco.jar file shipped with WAS 700.

I tried to reproduce the error with the NWDS by adding jrfc.jar from the variables to the build path or by adding <NDWS>\eclipse\plugins\com.sap.mw.jco_2.0.0\lib\sapjco.jar instead of the standalone version.

I can not reproduce the error itself, but after changing the jar file in NWDS I get an error like:

java.lang.NoClassDefFoundError at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:982)

Has anybody an idea what goes wrong and why the application is no longer working the JCo in WAS

Best regards,

Markus

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Meanwhile I solved the Java WAS problem. There is an OSS note with a new version of jrfc.jar.

The problem in NWDS still persists. Here it only works if you use the standlone version of JCo.