Integrated Jad decompile in eclipse

Source: Internet
Author: User
integrated Jad decompile in Eclipse

"Install Jad Program"
(Copies available, for the latest version Jad 1.5.8g for windows9x/nt/2000 on Intel platform)
1, copy the Jad.exe to the%java_home%\bin program directory. (You can also place any directory, for example: C:\ProgramFiles\Jad\jad.exe)

"Install Jadclipse plugin"
2, extract Net.sf.jadclipse_3.3.0.jar, copy it to the Eclipse\plugins directory, restart Eclipse.
myeclipse7.x, please create under genuitec\myeclipse7.1\dropins\
(myeclipse8.x, please create under Genuitec\myeclipse blueedition 8.0 ga\dropins\)
Eclipse\features
Eclipse\plugins
The Net.sf.jadclipse_3.3.0.jar is then copied to the newly created plugins directory before it can take effect.

"Configure Jadclipse"
3. Under the Eclipse window, click Window > Preferences> Java > Jadclipse > Path to Decompiler.
(You need to set the absolute path of the Jad, such as C:\ProgramFiles\Jad\jad.exe, if you can execute the Jad command at the command line without modifying this value.)
You can tick the use Eclipse codeformatter (Overrides Jad formatting instructions) option so that it is consistent with the code style that is formatted with CTRL+SHIF+F.

4, solve the problem of anti-compiling Chinese
Under the Eclipse window, click Window > Preferences> Java > Jadclipse > Misc to tick the convert Unicode strings into ansistrings option.
Expand the class file in the jar file to see the source code.

"Program Download Address"
Jadclipse Official website: http://jadclipse.sourceforge.net/wiki/index.php/Main_Page

JAD Official website: http://www.kpdus.com/jad.html#download, find the Jad download for your operating system platform on this page. After the download decompression, and then the extracted Jad.exe file copied to the%java_home%\bin directory below (can be jad.exe casually put to where, as long as you remember the path is good, the following to use).

Note: 1. After the installation is complete, Eclipse automatically sets the Jadclipse class FileViewer to the default open mode for the class file. If there is no default, you can modify the "*.class" default associated editor in Eclipse's windows-->perference-->general->editors->fileassociations to " Jadclipse Classfileviewer ". When the settings are complete, double-click the *.class file, and eclipse will automatically decompile.
2. For classes that have source code, it does not force decompile, which means that it will use the eclipse's own class FileViewer to view the class file and manually set the window->preferences->java-> Jadclipse, the Ignore Existingsource selected, will not have no source code, will be decompile.

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.