反编译插件

http://java.decompiler.free.fr/jd-eclipse/bugs

 

到该网站下载完eclipse反编译插件后,安装。

 

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://jd.benow.ca/jd-eclipse/update and click OK.

真正下载地址http://jd.benow.ca/jd-eclipse/downloads/jdeclipse_update_site.zip。。

下载完后安装后,如果class文件还是不能反编译出来。可能需要以下设置

1 安装好后,修改一个设置,选window-preferences 在输入框输入file Associations 在右边选*.class 下面将class file editor设置为默认的即可(点右边的default) 

2 还有一种,修改*.class without source,然后添加class file editor,其实网上很多都是说了第一种,但是很多人还是没有反编译出来。设置第二种之后,基本上应该可以的了。搞了这个反编译搞了好久,怎么都反编译不出来,原来是还要设置*.class without source,网上都不说,坑死人了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值