Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to avoid Linkage Error in JAVA Mapping

Dear Experts,

I am trying to test the JAVA mapping compiled in NWDS but receiving the error

"LinkageError at JavaMapping.load(): Could not load class".

java.lang.NoClassDefFoundError: JSONXMLProject/bin/com/sap/json/ConvJson2Xml (wrong name: com/sap/json/ConvJson2Xml)

at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:735)

at java.lang.ClassLoader.defineClass(ClassLoader.java:716) at java.lang.ClassLoader.defineClass(ClassLoader.java:537)

at com.sap.aii.ib.server.mapping.execution.MappingLoader.findClass(MappingLoader.java:195)

Following are the details:

SAP PO 7.4

SP Stack Number 05

JDK Version jdk16

NWDS

SAP Enhancement Package 1 for SAP NetWeaver Developer Studio 7.3 SP10 PAT0000

1.Created the Project , Package and then class (Included the logic)

2. Included 1 JSON Jar file into my project and the Added to build path.

3.Exported the project as Archive File and saved in desktop

4.Imported into SAP PO system as Imported Archive

5.Could not observe the JSON jar file which i used as referenced JAR in NWDS

6.Tested in OM after referencing the JAVA class and found the above error.

I have JDK 5, 6 and 7 present in my local desktop and I am trying to export the compiled code using both JAVA SE 1.6 and 1.5 in NWDS seperatly after going several discussions.

Can any one hep me with the screenshots and tell me how to include all the reference jar files in exported project..

Regards..

Former Member
replied

I see that you have the jar file under referenced library but can you try doing like this.

Right click on the project folder(root)->import-> General(Archive File)->select your jar file

This should add all the class files outside the reference libraries.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question