cancel
Showing results for 
Search instead for 
Did you mean: 

Java mapping is not running

Former Member
0 Kudos

Hi Experts,

when i run the program...am not able to make out why the following error is coming?

Error:

Linkage Error at Java Mapping load() : Couldnot load class : javaclassname

Java.long.NoClassDefFoundError: javaclassname(wrongname : com/sap/javaclassname)

Reward points for helpful answers

Regards,

Yeswanth.

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

Hi Yeswanth,

Steps:

1) in IR Create imported archive

2) On your local machine: zip the JAVA-projekt (you must zip the projekt because of the paths!)

3) Open the zip file; delete the files you do not need (e.g..classpath)

4) Upload the file into imported archiv

5) in interface mapping select the approriate *.class

6) save and activate

Regards Mario

Former Member
0 Kudos

Hi,

Check the java class name,class path and package name..

Thanks

stefan_grube
Active Contributor
0 Kudos

I think you should upload your Java program again and activate the corresponding repository object.

It might be a cache problem.

Regards

Stefan

Former Member
0 Kudos

Hi,

Did you imported the java file when importing the archive file to Integration repository? Please check.

Regards,

Indira D

Former Member
0 Kudos

did u declare any package for ur java program?

if so then u need to create the folders in the that sequence and zip the same to load into XI as an archive file.

prateek
Active Contributor
0 Kudos

Are u sure ur class resides in com.sap package?

Regards,

Prateek

Former Member
0 Kudos

Hi,

its clearly says that the class name is different and compiler is unable to find that calss name.

http://blogs.sun.com/sundararajan/entry/java_class_ic_errors

Compile your JAVA Mapping code , create the class file and compress in to jar file and then import that clas file under Imported Archives and use the same for mapping program in interface mapping.

how to compress class file to jar file?

in command promt go to perticular path where your class file is located.

type command

jar cvf [jar file name] [manifest-file].

regards,

pradeep A.

Edited by: Pradeep Amisagadda on Apr 30, 2008 9:13 AM

former_member859847
Active Contributor
0 Kudos

Hi,

Error log saying that wrong class name.

please set the Class path .

regards

mahesh.