Recover Java code from class file

Source: Internet
Author: User
Tags java decompiler

I ' m careless I deleted a Java Web project in Eclipse. The only thing I has a war file which I got from server.

Thanks to Procyon/java Decompiler, I recovered all Java source code from war class file. It ' s really a great tool!

Https://bitbucket.org/mstrobel/procyon/wiki/Java%20Decompiler

You can download it from https://bitbucket.org/mstrobel/procyon/downloads

Then, execute following command to decompile class files on to the current directory.

Java-jar Procyon-decompiler-0.5.27.jar *.class-o.

For Spring MVC project, it cannot recover @Autowried annotation, and you have to add it manually.

Recover Java code from class file

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.