Eclipse中查看jar包中的源碼

來源:互聯網
上載者:User

1. 下載JAD ,
 1.5.8版本的jad在 http://www.softpedia.com/progDownload/JAD-Download-85911.html

將展開後的jad.exe放到某個目錄,例如 c:/bin/jad.exe 或者直接雙擊jad.exe進行安裝

2. 下載JADClipse外掛程式

http://sourceforge.net/projects/jadclipse/files/
將展開後的net.sf.jadclipse_3.3.0.jar放入Eclipse的plugins子目錄下

3. 啟動Eclipse
    注意:eclipse需要重新啟動

4. 配置Jadclipse, 在 Windows - Preferences - Java - JadClipse下
配置Jad的路徑為 C:/bin/jad.exe,如果是雙擊安裝jad.exe的話,此處只需添 jad

如所示

5. 設定成功,則開啟class檔案,即可看到由JAD反編譯的原始碼,如所示注意,如果出現這樣的錯誤:

An error has occurred when activating this view
Expecting non-static method jadclipse.JadclipseBufferManager.createBuffer(Lorg/eclipse/jdt/core/IOpenable;)Lorg/eclipse/jdt/core/IBuffer;
那說明jad 和jadclipse的版本不匹配。原文:http://hi.baidu.com/kissdev/blog/item/2f049308a7a691d662d986be.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.