"Java" Eclipse Import War package two development

Source: Internet
Author: User

There are actual projects in the war package, but there is no source, struggling to view the source code, in the operation and maintenance group for the research and Development group despise, can not get the source code, only to decompile themselves.

Actually very simple!!!! Actually very simple!!!! Actually very simple!!!!

Important thing to say three times!

As long as you are careful, in fact, after extracting the war package, you can see the folder, there is already a JSP file, but there is no logical code layer (action, bean, etc.). Again carefully under the Web-inf folder to see, you will find that the class files are there, it is good to do. Recommend an anti-compile class tool "Jd-gui",: http://www.duote.com/soft/7793.html

The import is divided into two steps:

1. Import the War package

Right--import-warfile, import the war package. At this time, in Java resource, there is no code (Java code)

2. After you decompile the class file, import it into project.

After downloading Jd-gui, file-openfile, loading class, you can see the compiled Java files. Finally select Save all source, save and copy to the project project you just created.

The final code may be a little different and need to be fine-tuned, but you can develop and read the source code two times.

"Java" Eclipse Import War package two development

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.