標籤:
幾年前就安裝過,不過有個獨立啟動並執行反編譯工具用,所以這個沒安裝成功也就放棄了。現在發現用獨立工具確實麻煩,先要開啟工具,在把jar檔案拖進來。
不如使用外掛程式方便快捷,一鍵就可以看到源碼。於是再來一次。。。
記得當年出現的問題就是點要反編譯的類出現錯誤:java.io.IOException: Cannot run program "jad" 。。。
此次也不例外也到了這一步經過搜尋,找到了這句話:
if it still doesn‘t work, click the small jad icon, which shows up in the menu bar when you are doing the de-compile, to have a try.
。。。點了一下jad icon,源碼跳出來,於是整個世界清靜了。。。
下面記錄一下整個安裝過程:
一.下載
jad.exe
http://varaneckas.com/jad/
net.sf.jadclipse_3.3.0.jar
http://sourceforge.net/projects/jadclipse/
二.將net.sf.jadclipse_3.3.0.jar 拷貝到eclipse的plugins目錄下
三.重啟eclipse,然後Window—Preferences—Java—JadClipse
設定右邊的兩個路徑,Path to decompiler:設定jad.exe檔案的路徑;
Directory for temporary files:設定反編譯快取檔案的路徑(隨意設)。
四.修改關聯檔案
General—Editors—File Associatior
在右側,File types:選*.class或者*.class without source
下面,Associated editors:選JadClipse Class File Viewer,點default,點ok。
五.此時點沒有源碼的類,點F3,出現如。本來是該拿起咖啡,看源碼的節奏了,結果,說好的源碼呢。。。
解決也簡單:
功能表列:JadClipse(Window左邊沒有的話可能外掛程式沒裝好)點Decompile就出現源碼了。
點這個快捷小按鈕效果一樣。
相關檔案下載:
http://pan.baidu.com/s/1o681pA6
eclipse反編譯外掛程式jad安裝