cancel
Showing results for 
Search instead for 
Did you mean: 

multiple .jar file in java mapping

former_member190284
Participant
0 Kudos

Hi Experts

I have a scenerio in which I have used the java mapping..

The jar file which I have created is in Ecplise has around 10 jar files which also need to get imported.

so, I have created the zip file and created the imported archieve

issue 1

when i tried to use the imported archieve in OM, in the dropdown I cannt see archeive object

what i did:

I tried to add .class file of the main program and again impoted the archeive

ok, now I am able to see the objects

But again when I tried to run the Mapping in the OM , its throwing:

  • LinkageError at JavaMapping.load(): Could not load class: jar files - Copy/test_dom2
  • java.lang.NoClassDefFoundError: jar files - Copy/test_dom2 (wrong name: com/tcs/interfaces/keycard/outbound/initiateKeycardRequest)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:735)

My question is

1. do i need to add all the jar files in a zip folder

2. do i need to include the .class file externally of the main class?

3. I have seen in the post that linkage error is coz java which Pi is using and that of eclipse are different. What should i do in that case

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

madhusudana_reddy2
Contributor
0 Kudos

Hi Agarwal,

As you are working with Java programs. you need to keep jar files as is and create imported archives. Try create 10 imported archives with 10 jar files...You can see java program automatically in Operation mapping.

Meaning of Linkage error is very clear that class you are using is not available at run time.

Thanks,

Madhu

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Nunu,


The jar file which I have created is in Ecplise has around 10 jar files which also need to get imported.

so, I have created the zip file and created the imported archieve

issue 1

The 10 separate jar files should be imported individually.

Regards,
Mark