Recover Java code from class file

最后都变了- 提交于 2020-02-29 07:51:49

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!

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 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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!