cancel
Showing results for 
Search instead for 
Did you mean: 

.class file in Java Mapping

former_member188791
Participant
0 Kudos

Hi Group,

I am trying to modify java mapping , but when I checked in ESR only .class file appearing, can any body suggest how to access code within this .class file using Nwds or eclipse.

Accepted Solutions (0)

Answers (5)

Answers (5)

Ryan-Crosby
Active Contributor
0 Kudos

HI Rajiv,

If you setup a plugin like jadclipse you can open .class files as if they are plain .java files directly in an Eclipse environment.  I have had to do this on a couple of occasions to retrieve code where the source has been missing.

Regards,

Ryan Crosby

former_member188791
Participant
0 Kudos

Hi Ryan,

I am not sure how to plug in jadclipse in nwds can you please elaborate

Ryan-Crosby
Active Contributor
0 Kudos

Hi Rajiv,

This page has links to both the executable that you need as well as the plugin .jar file that you have to download and place into the plugins directory of your Eclipse installation:

http://www.mkyong.com/java/java-decompiler-plugin-for-eclipse/

Then it is only a matter of setting the preferences for the plugin and you should be able to view .class files within your IDE.

Regards,

Ryan Crosby

Ryan-Crosby
Active Contributor
0 Kudos

Hi Rajiv,

Also, a note about the plugin as sometimes it can be troublesome to setup such that it is working - if you have that kind of problem you can try jad-gui instead which is a standalone application (I use this one personally) to view the source code of any .jar or .class file.

Regards,

Ryan Crosby

vicky20691
Active Contributor
0 Kudos

I have suggested jad-gui to rajiv at first, but I am not able to understand why he is not trying that.

Rajiv, i have used jad-gui many a times and it has worked almost all the time.

Regards,

Vikas

Ryan-Crosby
Active Contributor
0 Kudos

Hi Vikas,

My apologies, I didn't open the link and you hadn't mentioned it by name so that's why I suggested Jad as well as I have used it on several occasions.

Regards,

Ryan Crosby

former_member188791
Participant
0 Kudos

Hi Vikas/Ryan,

Thank you for your reply , I followed that link and added plug in but still I am not able to open .class file by pressing F3

Ryan-Crosby
Active Contributor
0 Kudos

Hi Rajiv,

Add your .jar file as an external jar to any project and expand the Reference Libraries section of the project.  If you expand further into the .jar in question you should be able to double click on any class to get the code to show in the editor if it is working properly.  If it does not work then I would suggest giving jad-gui a try.

Regards,

Ryan Crosby

Former Member
0 Kudos

Hello,

Step by step to get Java mapping into NWDS or Eclipse refer : http://scn.sap.com/community/process-orchestration/blog/2014/04/28/change-existing-java-mapping-usin...

reg, aviansh M

former_member188791
Participant
0 Kudos

Hi Guys,

Thank you for your replies, please make a note that I dont have .java file here only .class file.

@Manoj,

I tried your link but its not able to decode .class file.

vicky20691
Active Contributor
0 Kudos

Hi Rajiv,

Did u download the tool mentioned by me, the tutorial to open .class is given in that link itself.

Regards,

Vikas

former_member186851
Active Contributor
0 Kudos

Rajiv,

Check the link I shared,Without .java file also there is a solution mentioned.

former_member186851
Active Contributor
0 Kudos

Hello Rajiv,

Below discussion should help you out.

manoj_khavatkopp
Active Contributor
0 Kudos

Additional you can check the online decompiler http://www.showmycode.com/

vicky20691
Active Contributor
0 Kudos

Hi rajiv,

ideally you can't, you must have the .java file.

Still you can try the java decompiler http://jd.benow.ca/

Regards,

Vikas