需要下載包:
1.dwonload jad包
http://www.kpdus.com/jad.html#download
http://www.kpdus.com/jad/linux/jadls158.zip
(
Jad 1.5.8e for Linux (statically linked)
(389972 bytes)
- take this version if the one above crashes or displays the "seek error" message.
)
2.download jadclipse包
http://jaist.dl.sourceforge.net/sourceforge/jadclipse/net.sf.jadclipse_3.3.0.jar
嘗試這個地址查找最新包: http://sourceforge.net/project/showfiles.php?group_id=40205
步驟:
1. 解壓jadls158.zip 到/home/zhangjunqing/devTools/這包僅兩 個文件,jad , Readme.txt.
2. net.sf.jadclipse_3.3.0.jar 此包copy 到eclipse\plugins目錄下
3. 啟動Eclipse后,在Windows——>Perference——>Java下面應該會多出一個JadClipse目錄,
修改配置jadclipse:設置path to decompiler為jad 的全路徑,如:/home/zhangjunqing/devTools/jad
可在Directory for temporary files中指定臨時文件的路徑
4.查Eclipse的Windows——>Perference——>General->Editors->File Associations中修改“*.class”默認關聯的編輯器為“JadClipse Class File Viewer”
5.安裝完成,雙擊class文件,Eclipse將自動反編譯了。
trouble:
在執行步驟5時遇到如下錯誤:
/home/zhangjunqing/devTools/jad: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
我用的linux 為ubuntu 7.10. 執行以下命令,
sudo apt-get install libstdc++2.10-glibc2.2
重啟eclipse 后解決 。
##
方向:分布式系統設計