一個非常好用的Java反編譯工具:官方描述“The “Java Decompiler project” aims to develop tools in order to decompile and analyze Java 5 “byte code” and the later versions.”。
官方網址:http://java.decompiler.free.fr/
它只是個很小的東西,下載好就可以用了。直接打jar包就可以了,方便快捷。
使用效果如圖:
它還提供了eclipse插件:
在eclipse裝了這個之後,你調試的時候報錯就可以直按着ctrl點進jar包裏面去看源碼,就不會想以前那樣看到一場卻不能看到代碼的情況了。
使用eclipse更新的地址爲:http://java.decompiler.free.fr/jd-eclipse/update
安裝方法:help-->install new software --> 輸入上面的地址進行安裝-->ok
如果安裝之後沒作用或者出錯的話要加上一下的補丁才行:
Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) 32位
Microsoft Visual C++ 2008 SP1 Redistributable Package (x64) 64位
你也可以下載到本地來進行安裝:http://java.decompiler.free.fr/jd-eclipse/update/jdeclipse_update_site.zip