`
sdutdazzling
  • 浏览: 31446 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

安装Eclipse反编译插件

 
阅读更多

 

安装Eclipse反编译插件

博客分类:
 /***************************************************不好用********************************************************************/

一、前提:

 

1、已经安装了Eclipse,如我的Eclipse目录:E:\Work_Soft\Eclipse

 

2、反编译插件包:eclipse 反编译插件_jad 3.3.0.zip

 

二、步骤:

 

1、解压反编译插件包“eclipse 反编译插件_jad 3.3.0.zip”;

 

2、将插件包中的net.sf.jadclipse_3.3.0.jar文件复制到Eclipse的插件目录下(如E:\Work_Soft\Eclipse\plugins);

 

3、启动Eclipse;

 

4、点击【Window】 --> 【Preferences】,在弹出的对话框中选中JadClipse进行设置,在右侧Path to decompiler的文本框中输入jad.exe文件的绝对路径,如下图:

 

 

 

 

 

三、常见问题

 

 

1、   在Preferences对话框中找不到JadClipse这一项

 

 

解决方法:先确认net.sf.jadclipse_3.3.0.jar这个插件文件有无正确安装或是否能和你的Eclipse版本匹配(我的Eclipse是3.5.2版本),同时在启动Eclipse前先在快捷方式中添加clean参数后在启动。

 

2、   正确安装后,还是无法反编译

 

 

解决方法:设置class文件的默认打开方式

点击【Window】 --> 【Preferences】,在弹出的对话框中选中【General --> Editors --> File Associations】,在右侧选中【*.class】然后点下方的【Add...】按钮,在弹出的对话框中选中【JadClipse Class File Viewer】这一项,点击【OK】;回到Preferences界面后,选中右侧下方的【JadClipse Class File Viewer】这一项,点击右侧的【Default】后,在点击最下方的【OK】保存设置即可;如下图:

 

 

注:附件eclipse_反编译插件_jad_3.3.0.zip 里面有插件,以及详细的安装文档;

 

改用:

JD-Eclipse (好用)

链接:http://java.decompiler.free.fr/?q=jdeclipse

 

Java Decompiler

Yet another fast Java decompiler

JD-Eclipse

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-Eclipse is free for non-commercial use. This means that JD-Eclipse shall not be included or embedded into commercial software products. Nevertheless, this project may be freely used for personal needs in a commercial or non-commercial environments.

Supported Platforms

  • Windows 32/64-bit
  • Linux 32/64-bit
  • Mac OSX 32/64-bit on x86 hardware

Installation 

Windows Platform Prerequisites

The native library, included into JD-Eclipse for Windows, has been built with Microsoft Visual C++ 2008 Express Edition. Some runtime components of Visual C++ Libraries are required to run the decompiler. You can download and install them from the Microsoft Web site :

Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)

Microsoft Visual C++ 2008 SP1 Redistributable Package (x64)

Instructions

  1. From the Help menu in Eclipse, select Install New Software... to open an Install dialog window (shown below).



  2. Add a new repository to add JD-Eclipse plug-in:
    1. Click on the Add... button to open the New Repository dialog window.
    2. Type JD-Eclipse Update Site in the site Name text box.
    3. In the URL text box, type the URL for the JD-Eclipse update site: http://java.decompiler.free.fr/jd-eclipse/update (shown below) and click OK.



  3. Check boxes "Java Decompiler Eclipse Plug-in" and "JD-Eclipse Plug-in", and click on Next buttons.
  4. Choose the option to accept the terms of the license agreement (shown below).



  5. Click on the Finish button.
  6. On the Selection Needed dialog window, click on the Select All and Ok buttons.
  7. Restart Eclipse.

Download

Size : 2.61 Mo
MD5 checksum : B0595389D3A604B782BB94FC94A93A8B

Thanks

Thanks to Andy Taylor to host JD-Eclipse Update Site files on http://benow.ca !

Donations

Did JD-GUI help you to solve a critical situation? Do you use JD-Eclipse daily? What about making a donation?

       Euro (€)       USD ($)     

Disclaimer

Copyright © 2008-2012 Emmanuel Dupuy.

THIS SOFTWARE IS PROVIDED “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

 

官方网站:http://java.decompiler.free.fr/

在Eclipse中进行安装的时候可以选择直接在线update,也可以下载插件包本地安装。在线安装的地址:http://java.decompiler.free.fr/jd-eclipse/update/,插件包单独的下载地址:http://java.decompiler.free.fr/jd-eclipse/update/jdeclipse_update_site.zip,各位可以按需自行选择。

安装完毕之后,按F3可能还是原来的class查看器,不能正常调用jd的class查看器,此时需要设置class文件的关联打开方式为jd程序,如下图:Eclipse默认的是Viewer,jd插件安装之后会多出一个Editor,选择那个并设置为默认的,则在F3的时候可以看到,如果找不到源码则会反编译class文件得到源码并显示。

image

注:对于存在原始码的类,他不会强行反编译,也就是说他还是会用eclipse自带的Class File Viewer查看class文件。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics