Eclipse decompilation Plugin: jodeclipse and jadclipse

Source: Internet
Author: User

 

Jodeclipse is the Eclipse plug-in of Jode, and jadclipse is the Eclipse plug-in of Jad. They are all very good decompilation plug-ins.

Jode eclipse plugin 1.0.5 for eclipse version 3.1/3.2
Installation Method

(1) download from the following address:

Http://sourceforge.net/projects/jodeeclipse

Decompress the downloaded file jodeplugin_1.0.5.zip to the eclipse plugins directory.
(2) Start eclipse, help-> Software Updates-> Find and install... -> search for new features to install, and click "new remote site... "Enter http://www.technoetic.com/eclipse/updatenext step in the URL bar, and you will see your jode decompiler plug-in *. * ", you can choose to install it. After installation, You can see window-> preferences...-> JAVA-> jode decompiler tab, okay. The installation is successful.

Configuration: window-> preferences... -> General-> editors-> file associations. Find "*. class "in" associated editors ", you can see that" jode class File Viewer "selects it and then click the default button.

Jadclipse eclipse plugin for eclipse version 3.1/3.2/3.3

1. Download:
Download plug-ins:
Download jadclipse_3.1.0.jar, which supports eclipse3.1m6 ~ 3.2m2
Download jadclipse_3.2.0.jar, which supports eclipse3.2m3 and eclipse3.2m4.
Download jadclipse_3.2.4.jar, which supports eclipse3.2m5 ~ 3.3m5

Download jadclipse_3.0.jar. This version supports eclipse3.3m6 and later versions.

Download the Jad decompilation tool:
Http://www.kpdus.com/jad.html?download,find the jaddownload of the operating system platform on this page. After the download is decompressed, copy the unzipped jad.exe file to the directory % java_home %/bin (you can place jad.exe in any location, as long as you remember its storage path, which will be used below ).

Ii. installation:

For details about how to install plug-ins in eclipse, refer to: Eclipse usage tips.
Method 1: Copy jadclipse_x.x.x.jar (x. represents the version number) to the % eclipse_home %/Plugins directory.

Method 2: Install jadclipse3.2.4/Eclipse/plugins by using link. Put jadclipse_3.2.4.jar under the Plugins directory (Note: D: /myplugins is a directory dedicated to plug-ins defined for you ). Create a jadclipse3.2.4.link file under the % eclipse_home %/links directory ). File Content: Path = D:/myplugins/jadclipse3.2.4.
Iii. Usage:
Start eclipse and click the decompiled class file. The jadclipse plug-in is activated. A jadclipse menu is displayed in the eclipse menu, as shown in:
Jadclipse plug-in


Generally, it will automatically decompile the corresponding class file. If not, click jadclipse-> decompile
As shown in:

Decompilation of jadclipse plug-in


FAQs:

(1) Start eclipse and open window> preferences> JAVA> jadclipse. If jadclipse is not found, the jadclipse plug-in is not activated.

(1) check whether the installed version of the plug-in corresponds to the installed eclipse version.

(2) Use the-clean parameter to start eclipse
(2) the following error occurs when the jadclipse plug-in is used to decompile the class file:
/* Jadclipse */
/*
Decompilation report
Decompiled from: e:/Java/jre1.5.0 _ 12/lib/EXT/j3dutils. Jar
Total time: 63 MS
Jad reported messages/errors:
Exit status: 0
Caught exceptions:
Java. Io. ioexception: CreateProcess: e:/Java/jdk1.5.0 _ 12-p-T4-lradix10-radix10 keynavigator. Class error = 5
At java. Lang. processimpl. Create (native method)
At java. Lang. processimpl. <init> (unknown source)
At java. Lang. processimpl. Start (unknown source)
At java. Lang. processbuilder. Start (unknown source)
At java.lang.runtime.exe C (unknown source)
At net. SF. jadclipse. jaddecompiler. decompile (jaddecompiler. Java: 160)
At net. SF. jadclipse. jaddecompiler. decompilefromarchive (jaddecompiler. Java: 217)
At net. SF. jadclipse. jadclipsesourcemapper. findsource (jadclipsesourcemapper. Java: 150)
At net. SF. jadclipse. jadclipsesourcemapper. findsource (jadclipsesourcemapper. Java: 83)
At net. SF. jadclipse. jadclipseclassfileeditor. doopenbuffer (jadclipseclassfileeditor. Java: 87)
At net. SF. jadclipse. jadclipseclassfileeditor. dosetinput (jadclipseclassfileeditor. Java: 45)
At net. SF. jadclipse. jadclipseactionbarcontributor. setactiveeditor (jadclipseactionbarcontributor. Java: 87)
At org. Eclipse. UI. Internal. editexceptionbars. partchanged (editexceptionbars. Java: 335)
At org. Eclipse. UI. Internal. workbenchpage $ 3.run( workbenchpage. Java: 606)
At org. Eclipse. Core. runtime. saferunner. Run (saferunner. Java: 37)
At org. Eclipse. Core. runtime. Platform. Run (platform. Java: 843)
At org. Eclipse. UI. Internal. workbenchpage. activatepart (workbenchpage. Java: 595)
At org. Eclipse. UI. Internal. workbenchpage. setactivepart (workbenchpage. Java: 3203)
At org. Eclipse. UI. Internal. workbenchpage. Activate (workbenchpage. Java: 588)
At org. Eclipse. UI. Internal. workbenchpage. busyopeneditorbatched (workbenchpage. Java: 2604)
At org. Eclipse. UI. Internal. workbenchpage. busyopeneditor (workbenchpage. Java: 2528)
At org. Eclipse. UI. Internal. workbenchpage. Access $10 (workbenchpage. Java: 2520)
At org. Eclipse. UI. Internal. workbenchpage $ 9.run( workbenchpage. Java: 2505)
At org. Eclipse. SWT. Custom. busyindicator. showwhile (busyindicator. Java: 67)
At org. Eclipse. UI. Internal. workbenchpage. openeditor (workbenchpage. Java: 2500)
At org. Eclipse. UI. Internal. workbenchpage. openeditor (workbenchpage. Java: 2485)
At org. Eclipse. jdt. Internal. UI. javaeditor. editorutility. openineditor (editorutility. Java: 287)
At org. Eclipse. jdt. Internal. UI. javaeditor. editorutility. openineditor (editorutility. Java: 164)
At org. Eclipse. jdt. Internal. UI. Actions. openactionutil. Open (openactionutil. Java: 49)
At org. Eclipse. jdt. UI. Actions. openaction. Run (openaction. Java: 190)
At org. Eclipse. jdt. UI. Actions. openaction. Run (openaction. Java: 174)
At org. Eclipse. jdt. UI. Actions. selectiondispatchaction. dispatchrun (selectiondispatchaction. Java: 267)
At org. Eclipse. jdt. UI. Actions. selectiondispatchaction. Run (selectiondispatchaction. Java: 243)
At org. Eclipse. jdt. Internal. UI. packageview. packagepoliceractiongroup. handleopen (packagepoliceractiongroup. Java: 306)
At org. Eclipse. jdt. Internal. UI. packageview. packagecyclerpart $4. Open (packagecyclerpart. Java: 653)
At org. Eclipse. jface. Viewers. structuredviewer $ 2.run( structuredviewer. Java: 817)
At org. Eclipse. Core. runtime. saferunner. Run (saferunner. Java: 37)
At org. Eclipse. Core. runtime. Platform. Run (platform. Java: 843)
At org. Eclipse. UI. Internal. jfaceutil $ 1.run( jfaceutil. Java: 44)
At org. Eclipse. jface. util. saferunnable. Run (saferunnable. Java: 149)
At org. Eclipse. jface. Viewers. structuredviewer. fireopen (structuredviewer. Java: 815)
At org. Eclipse. jface. Viewers. structuredviewer. handleopen (structuredviewer. Java: 1069)
At org. Eclipse. jface. Viewers. structuredviewer $6. handleopen (structuredviewer. Java: 1168)
At org. Eclipse. jface. util. openstrategy. fireopenevent (openstrategy. Java: 249)
At org. Eclipse. jface. util. openstrategy. Access $2 (openstrategy. Java: 243)
At org. Eclipse. jface. util. openstrategy $1. handleevent (openstrategy. Java: 283)
At org. Eclipse. SWT. Widgets. eventtable. sendevent (eventtable. Java: 66)
At org. Eclipse. SWT. Widgets. widget. sendevent (widget. Java: 928)
At org. Eclipse. SWT. Widgets. display. rundeferredevents (display. Java: 3348)
At org. Eclipse. SWT. Widgets. display. readanddispatch (display. Java: 2968)
At org. Eclipse. UI. Internal. workbench. runeventloop (workbench. Java: 1930)
At org. Eclipse. UI. Internal. workbench. runui (workbench. Java: 1894)
At org. Eclipse. UI. Internal. workbench. createandrunworkbench (workbench. Java: 422)
At org. Eclipse. UI. platformui. createandrunworkbench (platformui. Java: 149)
At org. Eclipse. UI. Internal. Ide. ideapplication. Run (ideapplication. Java: 95)
At org. Eclipse. Core. Internal. runtime. platformactivator $ 1.run( platformactivator. Java: 78)
At org. Eclipse. Core. runtime. Internal. adaptor. eclipseapplauncher. runapplication (eclipseapplauncher. Java: 92)
At org. Eclipse. Core. runtime. Internal. adaptor. eclipseapplauncher. Start (eclipseapplauncher. Java: 68)
At org. Eclipse. Core. runtime. adaptor. eclipsestarter. Run (eclipsestarter. Java: 400)
At org. Eclipse. Core. runtime. adaptor. eclipsestarter. Run (eclipsestarter. Java: 177)
At sun. Reflect. nativemethodaccessorimpl. invoke0 (native method)
At sun. Reflect. nativemethodaccessorimpl. Invoke (unknown source)
At sun. Reflect. delegatingmethodaccessorimpl. Invoke (unknown source)
At java. Lang. Reflect. method. Invoke (unknown source)
At org. Eclipse. Core. launcher. Main. invokeframework (main. Java: 336)
At org. Eclipse. Core. launcher. Main. basicexecute (main. Java: 280)
At org. Eclipse. Core. launcher. Main. Run (main. Java: 977)
At org. Eclipse. Core. launcher. Main. Main (main. Java: 952)

*/

Make sure that your Jad path is correctly set in eclipse.
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 be so arrogant.

(3) After the installation is complete, eclipse does not automatically set 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.
(3) install plug-ins in eclipse

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.