Decompile the. Class file using Jad and Eclipse plug-ins

Source: Internet
Author: User
Decompile the. Class file using Jad and Eclipse plug-insHttp://www.360doc.com/showWeb/0/0/51804.aspx

Jad is a Java decompilation tool and a command line execution tool. The Decompilation source file is highly readable. Unfortunately, it is not easy to use. Fortunately, find the plug-in under eclipse, called jadclipse. After installation, you only need to double-click the. Class file to view the source file directly,
Including the class file in the jar package, you can also decompile it directly.
1. Download jad1.2.8
Http://www.kpdus.com/jad.html#/img] download
Download and decompress the package. Only the latest version 1.2.8 can be used, but not 1.2.7.
2. Download jadclipse2.06beta
Http://sourceforge.net/projects/jadclipse/
Install the jadclipse directory by using eclipse plguin and decompress it to the eclipse/plugin directory.
3. Configure jadclipse:
Window> preferences> JAVA> jadclipse,
Set path to decompilerto the full path of jad.exe, for example, D: jadjad.exe
Specify the path of the temporary file in directory for temporary files.
In workbench> file associations,
Set *. class editor to jacclipse.
4. Decompilation
Find a class file and double-click it to view the compiled source file. Http://www.eclipseworld.org/bbs/read.php? Tid = 1866 & page = E & fpage = 1
Http://java.chinaitlab.com/Eclipse/390214.html
Http://www.matrix.org.cn/resource/article/44/44083_java.html
Http://www.blogworld.com.cn/article/11_19_9445880
Http://sourceforge.net/projects/jode/
Http://sourceforge.net/projects/jodeeclipse

 

Jad is a Java decompilation tool and a command line execution tool. The Decompilation source file is highly readable. Unfortunately, it is not easy to use. 1. Download:
Download plug-in: jadclips plug-in Website: http://jadclipse.sourceforge.net/
Download jadclipse_3.1.0.jar, which supports eclipse3.1m6 and later versions.
Download jadclipse_3.2.0.jar, which supports eclipse3.2m3 and eclipse3.2m4.
Download jadclipse_3.2.2.jar, which supports eclipse3.2m5 and later versions.
Download Jad decompilation tool: Local download
Http://www.kpdus.com/jad.html#/img] download: on this page, find the Jad download suitable for your operating system platform. After the download is decompressed, copy the unzipped jad.exe file to the directory % java_home %/bin (where can jad.exe be placed, as long as you remember the path, which will be used below ). Ii. installation:
Method 1: Copy jadclipse_3.1.0.jar to % eclipse_home %/ Under the Plugins directory.
Method 2: Install jadclipse_3.1.0.jar in the directory of E:/eclipse3.1plugins/jadclipse3.1.0/Eclipse/plugins by using link (Note: e: /eclipse3.1plugins is a directory dedicated to plug-ins defined for you ). Create a jadclipse3.1.0.link file under the % eclipse_home %/links directory (the file name can be obtained randomly, and the suffix must be. link ). the file contains Path = E: // eclipse3.1plugins // jadclipse3.1.0.
Start eclipse and open window-> preferences-> JAVA-> jadclipse. If jadclipse is not found, check whether the installed version of the plug-in corresponds to the installed eclipse version. The eclipse I installed is eclipse3.1.2. 3. set parameters:
Start eclipse and open window> preferences> JAVA> jadclipse.
1. Path to decompiler. Set the full path name of The Decompilation tool Jad, for example, % java_home %/bin/jad.exe.
2. Directory for temporary files. Set the temporary file path here.
As for the parameter settings in the debug, direves ves, formatting, and MISC directories in the window-> preferences-> JAVA-> jadclipse directory, we will not bother. 4. After the installation is complete, eclipse automatically sets jadclipse class file viewer to the default open mode of the class file. If no default value exists, modify "*. the Default Editor associated with class is jadclipse class file viewer ". After setting, double-click the *. Class file and eclipse will automatically decompile the file.
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.