Introduction
The “Java Decompiler project” aims to develop tools in order to decompile and analyze Java 5 “byte code” and the later versions.
JD-Core is a library that reconstructs Java source code from one or more “.class” files. JD-Core may be used to recover lost source code and explore the source of Java runtime libraries. New features of
Java 5, such as annotations, generics or type “enum”, are supported. JD-GUI and JD-Eclipse include JD-Core library.
JD-GUI is a standalone graphical utility that displays Java source codes of “.class” files. You can browse the reconstructed source code with the JD-GUI for instant access to methods and fields.
JD-Eclipse is a plug-in for the Eclipse platform. It allows you to display all the Java sources during your debugging process, even if you do not have them all.
JD-Core, JD-GUI and JD-Eclipse are free for non-commercial use. This means that JD-Core, JD-GUI and JD-Eclipse shall not be included or embedded into commercial software products. Nevertheless, these projects
may be freely used for personal needs in a commercial or non-commercial environments.
在這裡講解兩種安裝“Java Decompiler”法①採用安裝壓縮檔的格式,首先到http://java.decompiler.free.fr/jd-eclipse/update/上找到
使用瀏覽器開啟這個地址,如果打不開的話,或者出現如下情況
那麼將瀏覽器中顯示的地址複製到迅雷中進行下載,即複製這個地址http://jd.benow.ca/jd-eclipse/downloads/jdeclipse_update_site.zip下載完成之後,是一個壓縮檔,用好壓開啟可以看到
當然了這時候可以將對應的檔案夾分別複製到eclipse下面對應的檔案夾也行,但是我使用的是如下方式,點擊eclipse中的Help->Install new Software->點擊Work with後面的Add->點擊
Archive,選中你剛下載的壓縮檔,然後在Name中輸入任意名字均可,比如“Java Decompiler”,點擊OK,之後選中
一路Next即可,安裝完成之後重啟eclipse。
法②採用更新地址的方式前面一直到Add與上一種方式都一樣操作,在Location中輸入 http://java.decompiler.free.fr/jd-eclipse/update 這個地址,Name可以任意填寫,然後也是一路Next即可,完成之後重啟eclipse即可。