JadEclipse工具的使用
1、下載工具
JadEclipse
http://sourceforge.net/projects/jadclipse/
http://jadclipse.sourceforge.net/wiki/index.php/Main_Page
Jad
http://www.varaneckas.com/jad
http://en.wikipedia.org/wiki/JAD_(JAva_Decompiler)
2、Jad.exe介紹
jad -o -r -s java -d src **/*.class
解釋
-o:覆蓋舊檔案,而且不用提示確認。
-r:重新載入產生包結構。
-s java:定義輸出檔案的副檔名。jad為預設副檔名,我們反編譯後當然是要.java源檔案了。
-d:輸出檔案的目錄。src表示反編譯後的所有檔案都放在src目錄下。
**/*.class:反編譯本檔案夾下的所有class檔案
3、JadEclipse
下載:http://jadclipse.sourceforge.net/wiki/index.php/Main_Page,
1)將此jar包到%ECLIPSE_HOME%\plugins目錄下;
2):下載Jad反編譯工具http://www.varaneckas.com/jad,解壓出jad.exe即為反編譯工具的核;
3):啟動eclipse查看Window->Preferences->Java->JadClipse存在即安裝成功;
4):設定反編譯工具為jad.exe。
啟動eclipse,開啟:Window->Preferences->Java->JadClipse.
1、Path to decompiler,設定反編譯工具jad的全路徑名,比如:D:\jad.exe。
2、Directory for temporary files,設定臨時檔案路徑。
4、注意
安裝完成後,如果eclipse沒有自動將JadClipse Class File Viewer設定成class檔案的預設開啟檔案,可以在Eclipse的Windows—> Perference—>General->Editors->File Associations中修改”*.class”預設”File Associations”為”JadClipse Class File Viewer”。設定完成後,雙擊*.class檔案,eclipse將自動反編譯。