论坛首页 Java企业应用论坛

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

浏览 40104 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2008-11-24   最后修改:2008-12-17

网上经常会下载到一些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文件的默认打开工具。

 

 

  • 大小: 17.8 KB
   发表时间:2008-11-24  
有些代码不如jad处理的好。
0 请登录后投票
   发表时间:2008-11-24  
这个东东还是挺好用的。快捷键都跟Eclipse一样。
0 请登录后投票
   发表时间:2008-11-25  
反编译后备注好像没有了,用jad反编译后备注还有
0 请登录后投票
   发表时间:2008-11-25  
it's good!@
0 请登录后投票
   发表时间:2008-11-25  
need to be installed?
0 请登录后投票
   发表时间:2008-11-25  
还是jadclipse方便
0 请登录后投票
   发表时间:2008-11-27  
嵌套太深(3层还是多少层来着)的反编译不出来……
0 请登录后投票
   发表时间:2008-12-01  
以后看来的实现classloder了,最起码也要混淆下.
0 请登录后投票
   发表时间:2008-12-27  
比较不错的工具
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics