JadEclipse工具的使用

阅读更多

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.

  • net.sf.jadclipse_3.3.0.jar (44 KB)
  • 下载次数: 73
  • jad158g.win.zip (233 KB)
  • 下载次数: 75

你可能感兴趣的:(Eclipse,Debian,PHP,Linux,.net)