on 12-30-2014 11:01 AM
Dear Friends,
My requirement here is too change existing java mapping. Here I am exporting zip file from imported archive and after making changes in eclipse upload the .JAR file again. Here .class file is not opening after upload in Imported Archive.
Error is
Setup I am having on my system.
-> JDK version on my system JDK 1.6_34
-> JRE on my system – JRE 6
-> Using eclipse SDK 4.2.2
SAP PI servers settings.
I searched online blogs but no help. Can anybody guide me what wrong am I doing here?
Thanks.
Sumeet.
Hello Sumeet,
Did you solve this issue? I am facing exactly the same problem in viewing .class file as an Imported Archive in PI.
Requesting your kind help here.
Thanks,
Aman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello ,
The problem with the JDK version,
Your PI JDK is : 1.5
Eclipse JDK is 1.6.
Meaning the you compile the code in 1.5 and imported in PI (1.6) , run the code in 1.6 JRE.
So make sure compile the code in 1.5 and imported in to PI ESR.
Action required: you can change the JDK version in eclipse (the same place in your eclipse screenshot) and compile it and import it into PI ESR.
You can't open .class files. If you have uploaded the .java files you can see that code.
However your mapping should work once you activate the mappings. Did you test end-end?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry Sumeet. I wasn't clear in my previous reply.
You can open the class files but you won't be able to read the java code. It just displays the methods in it.
>>>I activated the imported archive and tested the mapping in ESR. But mapping getting failed due to same error for .class file.
Make sure that there are no compilation errors and recompile the program.
If you have used any external jar files, make sure that you have included them in the archive before importing into ESR.
Thanks for reply..Hareesh.
-> In Eclipse only 1 warning is coming and no error. I guess Eclipse automatically compile .class file. Is there any way in eclipse to see if compilation is done properly?
-> I imported few external JAR files and already few JAR files are there in Eclipse(JRE1.6), as shown in fig below. Which JAR file is being user? How can I make sure?
-> When using Run as option I am not getting any option. Is it normal or did I have to activate some option?
Please give your views on this.
Thanks.
Sumeet.
I don't see any external jar files in your project.
Yes. By default automatic build is enabled in eclipse. Not sure what is wrong with your archive file.
You can try below approach and see if it displays the byte code properly.
How do I display Java bytecode? - Web Tutorials - avajava.com
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.