cancel
Showing results for 
Search instead for 
Did you mean: 

java mapping

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Shabarish_Nair
Active Contributor
0 Kudos

use free decompiler tools to help you out - http://java.decompiler.free.fr/?q=jdgui

Former Member
0 Kudos

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

baskar_gopalakrishnan2
Active Contributor
0 Kudos

If you packaged changed file in addition to necessary other files and created jar and imported in pi, that is fine. I see you are doing right steps.

Former Member
0 Kudos

Hi Gurus,

How can I transport the java mapping from Dev to QA.

I have to transport teh imported archives and teh interface mapping.

After transporting them to QA should I import teh .jar into the imported archives.

Please clarify.

Thanks,

Usha.

Answers (1)

Answers (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

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.