cancel
Showing results for 
Search instead for 
Did you mean: 

NoClassDefFoundError for ConvertCToX when calling jco connect

Former Member
0 Kudos

Hi expert,

Now I have a j2ee dc of web project, in the context menu I 'Add/Remove additional Libraries' to add JCO jar files, and I put this jar file into WEB-INF/lib. All I done above enable me to access SAP backend via jco in my web project.

The code segment could be


JCO.Client jcoclient =
		JCO.createClient(
		"120",
		"$MYSAPSSO2$",
		mysapcookievalue,
		"zh",
		"cnlfkux002",
		"02");
jcoclient.connect();

In this way, it works fine in a non-DC project, but failed in DC, if I deploy this project and run this code, I will get exception for

jcoclient.connect();

java.lang.NoClassDefFoundError: com.sap.i18n.cp.ConvertCToX

I open the jco jarfile to look for this class but failed, I search this class in Google & Baidu & Yahoo and SDN as well, all failed.

I have no idea how comes this exception, where is this class and why a single web project will not trigger this problem.

Any hint? thanks in advance.

Best Regards,

William

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

This class is hard to find, but finally I got it.

C:\Documents and Settings\Administrator\.dtc\0\DCs\sap.com\tc\bi\i18n\_comp\gen\default\public\def\lib\java\i18n_cp.jar

This jarfilre is not required for build time, but for runtime you have to put it into j2ee lib.