on 05-29-2015 10:06 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.