on 11-17-2011 3:11 PM
Hi Gurus,
I have to change the .class created for teh java mapping.
So I exported teh .jar from imported archive to my desktop.
I created a new java project in NWDS and I added this .jar file to my project.
So .class file and teh corresponding class got imported into the project . when I tried to change the code within the class by double-clicking it .
It is saying.
The source attachment does not contain the source for teh file ABC.class.
Can you please tell whether the above procedure is correct to change the code in .jar file which is obtained from teh imported archives.
Any help appreciated.
Thanks,
Jay.
Hi Jay
.class files are java compiled classes.
To change java mapping you need to change the .java file, then compile it and include it in the imported archive.
If the imported archive does not contain the .java file you need to use a java decompiler.
Regards,
Giuseppe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use free decompiler tools to help you out - http://java.decompiler.free.fr/?q=jdgui
Hi Shabharish,
I used decompiler to generate .java file and I did the necessary changes in the code
Then I saved this into a zip file Changedfile.zip.
After doing this if I have create .jar from this changed file and import in PI.
For thios i followed teh below steps.
1)create a new project in NWDS.
2)Import teh Changedfile.zip into this project.
3)Rebulid teh project
4)Export the project into .jar file using the export option
5)Now use this jar file to import in PI.
Can you please tell if I'm following the right steps to import teh changed java mapping into PI.
Thanks,
Jay
The exported jar might contains only the compiled .class files not source files. To generate source version from the compiled classes, you need to use some decompiler. After that you can view and modify source files. Search google for free decompiler for java.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.