cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NoClassDefFoundError: com/sap/mw/jco/JCo

Former Member
0 Kudos

Hi:

I am using NWDS SP16. I have created proxy class for a rfc using SAP Enterprise Connector.

I have created a j2ee web dc and added the com.sap.mw.jco dc in the used dc's list.

Then I tried to create a Jco connection, I got the error java.lang.NoClassDefFoundError: com/sap/mw/jco/Jco

Any help please.

Accepted Solutions (0)

Answers (1)

Answers (1)

Jeff-Gebo
Advisor
Advisor
0 Kudos

You also need to add a reference to this library in the application-j2ee-engine.xml deployement descriptor in the Enterprise Application project. Open this xml up, and in the editor on the General tab, highlight the "References" folder and click the Add button. In the popup click the "Select library/interface/service" button. Then select the com.sap.mw.jco library and click OK. In addition to these you will need to select com.sap.aii.proxy.framework.

Save your changes and deploy...these setting setup the proper runtime linkage to the libraries on the server. The DC settings you did are only for build time...they will do not also link you to the proper libs on the server.

Hope this helps!

Jeff