cancel
Showing results for 
Search instead for 
Did you mean: 

Extracting from EAR file

Former Member
0 Kudos

Hello Experts,

Right now we are on EP6 upgraded to EP7

I have a modified sap.comessus.ear file from EP6.

But, we lost the source code on the track and track itself during upgrade to NWDI.

Is there anyway to get the source code from this EAR file. Or any way we can deploy this ear file on different J2ee engine. So, we can run it on our new portal.

your help is greatly appreciated.

Thanks,

James

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi James,

the developer chose to keep or not the source class into .ear file.

So you can unzip the .ear file (using WinRar), in this way you will be able to see the folder structure and various files, you will see a lot of .class file that are binary class and if you are lucky you can find a lot of .java files. Open the .java files with a txt editor like notepad, this is the source code.

Hope this help you.

Regars,

Vito

Answers (1)

Answers (1)

Former Member
0 Kudos

Theres no source code.

Former Member
0 Kudos

Hi James,

Once you get the .class file as told by Vito, you can use JAD to get the java source code.

Kind regards

Jagdesh