jadeclipse decompile plugin installation

Eclipse decompilation tool Jad and plug-in JadClipse configuration
    Jad is a decompilation tool for Java, which is executed by command line, which is the same as the java and javac commands that come with JDK. However, because it runs on the console, it is not very convenient to use. Fortunately, there is an eclipse plug-in JadClipse, the combination of the two can easily view the source code of the class file in eclipse. The following describes the configuration:
    A. Download JadClipse, http://jadclipse.sourceforge.net/wiki/index.php/Main_Page#Download, pay attention to select the version consistent with the eclipse version, I use Eclipse3.4, so choose to download Version net.sf.jadclipse_3.3.0.jar
    B. Download Jad, http://www.varaneckas.com/jad, download the corresponding version
    C. Copy the downloaded Jadclipse, such as net.sf.jadclipse_3.3.0.jar to The plugins directory under Eclipse can be used. Of course, you can also use links to install, but it is more troublesome.
    D. Copy Jad.exe to the bin file in the JDK installation directory (convenient, put together with common commands such as java, javac, you can use the jad command directly in the console), the directory on my machine is D:\ Program Files\Java\jdk1.6.0_02\bin\jad.exe
    F. Then, restart Eclipse, find Eclipse->Window->Preferences->Java, you will find that there will be one more JadClipse option than before, click it, it will appear, as follows: Enter in Path to decompiler You just placed the location of jad.exe, you can also make a directory for temporary files, as shown in the figure. . Of course, there are some sub-options under JadClipse, such as Debug, Directives, etc., which can be configured according to the default.
    G. After the basic configuration is completed, we can check the default opening method of the class file, Eclipse->Window->Preferences->General->Editors->File Associations, we can see the following picture:
, we can see the class file There are two ways to open it, JadClipse and the Class File Viewer that comes with Eclipse, and JadClipse is the default.
    H. All configuration is complete, now we can view the source code, select the class to be viewed, press F3 to view the source code, such as viewing Target in Annotation, use jad to view the source code as follows:
You can see the top line
"/* jadclipse*/// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.", the description is decompiled by jad.

                        PS: It is said on the Internet that for classes with source code, it will not be forcibly decompiled, that is to say, it will still use the Class File Viewer that comes with eclipse to view the class files. I haven't verified this yet. In addition, the compressed package of jad and jadclipse I used is attached for your convenience: /Files/landon/DeComiler.rar

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326331152&siteId=291194637