JadEclipse工具的使用

本文详细介绍JadEclipse的安装及配置流程,包括下载JadEclipse工具、设置jad.exe路径、配置临时文件目录等关键步骤,并解决常见问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

JadEclipse工具的使用

1、下载工具
JadEclipse
http://sourceforge.net/projects/jadclipse/
http://jadclipse.sourceforge.net/wiki/index.php/Main_Page
Jad
http://www.varaneckas.com/jad
http://en.wikipedia.org/wiki/JAD_(JAva_Decompiler)

2、Jad.exe介绍
jad -o -r -s java -d src **/*.class
解释
-o:覆盖旧文件,而且不用提示确认。
-r:重新加载生成包结构。
-s java:定义输出文件的扩展名。jad为默认扩展名,我们反编译后当然是要.java源文件了。
-d:输出文件的目录。src表示反编译后的所有文件都放在src目录下。
**/*.class:反编译本文件夹下的所有class文件

3、JadEclipse
下载:http://jadclipse.sourceforge.net/wiki/index.php/Main_Page,
1)将此jar包到%ECLIPSE_HOME%\plugins目录下;
2):下载Jad反编译工具http://www.varaneckas.com/jad,解压出jad.exe即为反编译工具的核;
3):启动eclipse查看Window->Preferences->Java->JadClipse存在即安装成功;
4):设置反编译工具为jad.exe。
启动eclipse,打开:Window->Preferences->Java->JadClipse.
1、Path to decompiler,设置反编译工具jad的全路径名,比如:D:\jad.exe。
2、Directory for temporary files,设置临时文件路径。
安装步骤:
Installation
* Put the JadClipse JAR file into the plugins folder of your Eclipse installation.
* Restart Eclipse (eclipse -clean).
* Get 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)
* 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.

4、注意
linux用户可能需要libstdc++-libc6.2-2.so.3
debian系可以使用:sudo apt-get install libstdc++-libc6.2-2.so.3

安装完成后,如果eclipse没有自动将JadClipse Class File Viewer设置成class文件的缺省打开方式,可以在Eclipse的Windows—> Perference—>General->Editors->File Associations中修改”*.class”默认”File Associations”为”JadClipse Class File Viewer”。设置完成后,双击*.class文件,eclipse将自动反编译。

5、网络上的一些问题:
Troubleshooting
Q:The JadClipse plug-in is not activated when I start Eclipse.
A:You’ll need to launch Eclipse with the -clean flag to allow the environment to detect the plug-in. Subsequent launching of Eclipse won’t require the -clean flag.
eclipse -clean
The Eclipse Class File Viewer instead of the JadClipse Class File Viewer is opened.
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.The JadClipse Class File Viewer does not show the decompiled source.If the editor contains the following text segment JadClipse was not able to execute the Jad binary. Make sure that the path to the binary (Path to Decompiler) is set correcly in the preferences.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值