码迷,mamicode.com
首页 > 编程语言 > 详细

Recover Java code from class file

时间:2014-11-14 18:08:20      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:style   http   io   ar   sp   java   for   on   bs   

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.

Recover Java code from class file

标签:style   http   io   ar   sp   java   for   on   bs   

原文地址:http://my.oschina.net/sunpr/blog/344918

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!