推荐一款免费好用的Java反编译工具Java Decompiler

网上经常会下载到一些jar文件和war文件,这些文件里面都是classes文件,通过“Java Decompiler”可以反编译(查看)里面的源代码,而且还可以批量保存jar文件和war文件里面的class文件。

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

 

2、批量反编译,即将jar档里面所有的classes文件反编译成java文件。

步骤:【File】->【Save JAR sources】即可。


3、技巧:

    该工具默认不支持war格式,其实我们只要将该文件的后缀名改为jar可以了。

 

 

附:eclipse插件,即时反编译插件 JadClipse 使用

1、主页

2、jar档下载

3、反编译工具jad 主页和下载

4、安装和使用:

Installation

  • Put the JadClipse JAR file into the plugins folder of your Eclipse installation.(将下载的jar档拷贝到eclipse下的plugins文件夹 ) 
  • Restart Eclipse (eclipse -clean )(重新启动eclipse,执行【Project】-》【Clean】 ).
  • Get Jad .(下载Jad工具
  • Put the Jad executable into a directory that is in the execution path of your operating system. Alternatively, you can configure the path to the Jad executable under Window > Preferences... > Java > JadClipse > Path to Decompiler . (Set the full path, e.g. C:\Program Files\Jad\jad.exe )(将得到的Jad文件解压,得到一个jad.exe的可执行文件,然后再eclpse进行设置:【Window】 > 【Preferences...】 > 【Java】 > 【JadClipse】 > 【Path to Decompiler】,在输入框输入jad.exe的绝对路径.
  • Go to Window > Preferences... > General > Editors > File Associations and make sure that the JadClipse Class File Viewer has the default file association for *.class files.(【Window】 > 【Preferences...】 > 【General】 > 【Editors】 > 【File Associations】,将JadClass设置为class文件的默认打开工具。

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值