一、Eclipse線上安裝JD-Eclipse反編譯插件
1、在eclipse的help—》Install New Software...中添加新軟體開發,添加它的源:
name:jd-eclipse_update_site
address:http://jd.benow.ca/jd-eclipse/update
出現上面的界面,說明已經安裝過了。
2、選擇出現的資源,一路next安裝,最後重新開機;
3、在視窗 —》 首選項(preference) —》 正常 —》 編輯器(editor) —》 檔案關聯 中設定,将*.class 和 *.class without source的預設的相關聯編輯器改為class file editor。
二、離線安裝JD-Eclipse反編譯插件
先下載下傳插件包:
官網:
http://java.decompiler.free.fr/
http://jd.benow.ca/#jd-gui-download
或者:http://aniyo.iteye.com/blog/1336622
1、 下載下傳jdeclipse_update_site.zip,解壓,将plugins檔案下的jd.ide.eclipse_0.1.3.jar和 jd.ide.eclipse.win32.x86_0.1.3.jar複制到eclipse安裝目錄下的plugins裡 ;
2、在eclipse裡安裝,選擇help下的安裝插件install new soft 或者叫update ……版本不同不一樣,自己看哈 然後 點add site ,在彈出來的框的location選擇剛下載下傳的包的路徑 然後下一步,安裝即可 ;
3、安裝好後,修改一個設定,選window-preferences 在輸入框輸入file Associations 在右邊選*.class 下面将class file editor設定為預設的即可(點右邊的default)。