Eclipse Anti-compilation tool jad and plugin jadclipse configuration (RPM)

Source: Internet
Author: User

Eclipse Anti-compilation tool jad and plugin jadclipse configuration

Jad is a Java anti-compilation tool that is executed with the command line, and usually the same as the Java,javac command that comes with the JDK. However, because the console is running, it is not very convenient to use. But fortunately there is an Eclipse plug-in jadclipse, which makes it easy to view the source code of a class file in Eclipse.Here's a look at the configuration:
A. Download Jadclipse,Http://jadclipse.sourceforge.net/wiki/index.php/Main_Page#Download, select the version that is consistent with the Eclipse version, I use Eclipse3.4, so choose Download version Net.sf.jadclipse_3.3.0.jar
B. Download Jad,Http://www.varaneckas.com/jad, download the appropriate version
C. The jadclipse that will be downloaded, such as Net.sf.jadclipse_3.3.0.jarCopy to the plugins directory under Eclipse。 Of course you can use it.Linksinstallation, but more trouble.
D.Copy the Jad.exe to the bin file under the JDK installation directory(Convenient, with Java,javac and other commonly used commands to put together,You can use the Jad command directly from the console), the directory on my machine is D:\Program files\java\jdk1.6.0_02\bin\jad.exe
F. Then, restart Eclipse to findEclipse->window->preferences->java, you will find that there is one more than the originalJadclipseThe options, click, will appear as follows:InPath to DecompilerEnter the location of the jad.exe you just placed, you can also make a temporary file directory,. Of course, under the jadclipse there are also some sub-options, such as debug,directives, according to the default configuration.
G. Once the basic configuration is complete, we can checkDefault open mode for class file,Eclipse->window->preferences->general->editors->file Associations, we can see:
, we can see that the class file is opened in two ways,JadclipseAnd Eclipse comes with theClassFile Viewer, and Jadclipse is the default.
H. Complete configuration, the following we can view the source code, select the class to be viewed, press F3 to view the source code , such as viewing the target in annotation, use Jad to view the source code as follows:
You can see the top row.
"/*jadclipse*///decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. ", stating that it was recompiled by Jad.

PS: Online says for a class that has source code, it does not forcibly decompile, that is, it will still use the eclipse's own class file viewer to view the class files. I haven't verified this yet . Also attached I use the Jad and Jadclipse compression package, convenient for everyone to download:/files/landon/decomiler.rar

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's in the execution path of your operating system. Alternatively, you can configure the path to the Jad executable under Window > Preferences ... > Java > Jadcli PSE > 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 Jadclips The e Class file Viewer has the default file, association for *.class files.

Troubleshooting

The Jadclipse plug-in is not a activated when I start Eclipse.
You'll need to launch Eclipse with the-clean flag to allow the environment to detect the plug-in
. Subs Equent 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 th E 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 is not able to execute the Jad binary. Make sure, the path to the binary, path to Decompiler, is a set correcly in the preferences.

/*jadclipse*//*decompilation reportdecompiled From:d:\program files\java\jdk1.5.0_06\jre\lib\rt.jartotal time:16 Msjad reported Messages/errors:exit status:0caught exceptions:java.io.IOException:CreateProcess: (...)

< Span style= "FONT-SIZE:12PT;" >< Span style= "FONT-SIZE:12PT;" >< Span style= "FONT-SIZE:12PT;" >http:// Jadclipse.sourceforge.net/wiki/index.php/main_page#installation

< Span style= "FONT-SIZE:12PT;" >< Span style= "FONT-SIZE:12PT;" >< Span style= "FONT-SIZE:12PT;" >http://jd.benow.ca/jd-gui/ downloads/#jd-gui

Jd-gui

Jd-gui-0.3.6.windows.zip

< Span style= "FONT-SIZE:12PT;" >< Span style= "FONT-SIZE:12PT;" >< Span style= "FONT-SIZE:12PT;" >http://jd.benow.ca/jd-gui/ Downloads/jd-gui-0.3.6.windows.zip

Http://blog.sina.com.cn/s/blog_437ff56b010166qb.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.