您的位置:首页 > 编程语言 > Java开发

eclipse 反编译class文件

2012-12-26 22:10 176 查看
1、安装jadclipse插件

http://ncu.dl.sourceforge.net/project/jadclipse/jadclipse3.3/3.3.0%20%28for%20Eclipse%20_%3D3.3M6%29/net.sf.jadclipse_3.3.0.jar
将jadclipse插件下载下来,复制到eclipse的plugin目录中。
使用jadclipse插件一定要注意Eclipse版本。jadclipse_3.2.4,它对应的是Eclipse3.2
版,jadclipse_3.3.0可以用于Eclipse3.3M6以上版。

2、安装jad

jad.exe复制到你的%JAVA_HOME%\bin目录下,这样做的好处是使用方便。然后在Eclipse中设置一下,选择”窗口”-“首选项”-“Java”-“JadClipse”,在path to decompiler中输入jad.exe的绝对路径。

3、设置.class文件默认的打开方式。

在 window->Preferences->General->Editors->File Associations 下面选择*.class 将JadClipse Class File Viewer 设置为默认的。

4、重新启动eclipse即可。

5、测试是否可以查看源代码

将鼠标放到java中的某个类上选中它,如String,按下F3,如果可以看到HttpServletResponse类的源代码
/*jadclipse*/// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel
Kouznetsov.

// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) radix(10) lradix(10)

// Source File Name: HttpServletResponse.java

说明你反编译成功了。

没有jad.exe可以找我要。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: