Recover Java code from class file

I‘m so careless I deleted a Java web project in eclipse. the only thing I have is 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!

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

then execute following command to decompile class files in to current directory.

java -jar procyon-decompiler-0.5.27.jar *.class -o .

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

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。