Java anti-compiler installation and introduction to each version __java

Source: Internet
Author: User
Tags java decompiler

The Java language was released by Sun in May 1995, because of its high security, code optimization, cross-platform and other characteristics, quickly replaced a lot of traditional high-level language, occupy the enterprise-class network application development and many other fields of hegemony.
However, Java's most prominent cross-platform advantage makes it impossible to compile cost code, running in the form of intermediate code in a virtual machine environment makes Java decompile easier to implement than other high-level languages, and the decompile code is optimized to match almost the source code.
In order to better protect intellectual property and avoid the company's intellectual achievements easily stolen, it is necessary for developers to understand the decompile tool, in order to take targeted protection measures.


Note: Please close eclipse before installing.

1. Download Jad.exe

Address: Http://www.varaneckas.com/sites/default/files/jad/jad158g.win.zip

After decompression, place the Jad.exe in the bin directory of the JDK installation directory. For example: G:\Program files\java\jdk1.7.0_01\bin

2. Download the Jadclipse installation package

Address: http://nchc.dl.sourceforge.net/project/jadclipse/jadclipse3.3/3.3.0%20%28for%20Eclipse%20_%3D3.3M6%29/ Net.sf.jadclipse_3.3.0.jar

Once you have this jar package, copy the jar package directly to the plugins folder in the Eclipse's installation directory.

For example: G:\Program files\java\eclipse\plugins

3. Open Eclipse, configure Jadclipse: Select the window--preferences--left text box of the menu bar to enter Jad return search to navigate to the Jadclipse option, as shown below:

Note the first parameter "path to Decompiler" on the right side of the configuration, that is, the absolute path where Jad.exe resides. Note that this is the absolute path, and using the system variable%java_home%\bin\jad.exe is not going to work. Oh (previously configured%java_home% as JDK path).

As for the second parameter "Directory for temporary Files", you are free to configure. As the name suggests, this path is used to save the compiled temporary files.

As for the Java--jadclipse expansion in preferences, you only need to configure the above two parameters on the Jadclipse directory, other directories under this directory such as debug, directives, formatting, The parameters on the misc can not be configured.

After this configuration, now open the *.class file, look back to compile the source code easily.


Note that after this setting, you double-click some. class files are still not able to decompile, because these class files do not have additional source code, to resolve all class files, you need to do the following settings:
under the file Type to select *.class without source, Then click Add under Associated editors, add Jadclipse class file Viewer, then select Jadclipse Class File Viewer and click the Default button on the right to Jadclipse The Class File Viewer is set to the default editor for *.class without source.


The above way not to try the following way:

1. Download:

(1) Jadclipse plugin:
To SourceForge.net (http://sourceforge.net/projects/jadclipse/) Download plugin:
Download Jadclipse_3.1.0.jar version, support ECLIPSE3.1M6 above
Download the Jadclipse_3.2.0.jar version and Support ECLIPSE3.2M3 and ECLIPSE3.2M4.
Download Jadclipse_3.2.2.jar version, support ECLIPSE3.2M5 above.

(2) jad1.5.8e compiler program
Download Address Http://www.kpdus.com/jad.html#download
Unzip after downloading. After decompression, copy the Jad.exe to the JRE bin directory, such as \java\jre1.5.0_06\bin

2. Load plugin:
If the plug-in package is: Net.sf.jadclipse_3.2.4.jar
(1) directly into the eclipse\plugins\, (2) the unified management of Plug-ins: the establishment of the following directory tree: Ide\eclipseplugin\jadclipse\eclipse\plugins,
Then put the Net.sf.jadclipse_3.2.4.jar into the plugins of the path.
Starting eclipse, you can see the Jadclipse plug-in information under Help->about Eclipse sdk->plug-in details.

3. Set up:

Start Eclipse, open: Window->preferences->java->jadclipse, if you don't find jadclipse, check to see if the plugin installation version is the Eclipse version you installed

Corresponding.
It can be set up very clearly here.
You can modify the "*.class" default associated editor in Eclipse's windows-> perference->general->editors->file associations as "jadclipse Class File Viewer, the generic plug-ins are automatically associated.

(1) path to Decompiler, where you set the Jad full path name of the Decompile tool, such as:%java_home%\bin\jad.exe.
If you set the path in the environment variable to point to the Java installation path, you do not need to change the bin, the default is Jad.
(2) Directory for temporary files, where the temporary file path is set.

As for the parameter settings in the Debug,directives,formatting,misc directory under the Window->preferences->java->jadclipse directory, the default is enough.

4. All automation, view. Class is OK when you double-click in Eclipse.

Use this after jad the program seems to be able to put in the pocket, but still attached to its command instructions:

Decompile A single Java language class file and enter at the command line: Jad example.class carriage return.
Let's make a Example.jad file in your current directory! Change its suffix to Java to read! (You can ignore the. class suffix)
Option-s< suffix > allows you to change the suffix of the output file.
Jad-sjava Example.class
This command generates the file ' Example.java '. Be careful when you use both Option-O and-sjava, because Jad will accidentally overwrite your source file.

Jad uses the Java class filename as the default output filename. For example, if the class file ' Example.class ' contains Java class ' Test ' then jad takes precedence

Into ' Test.jad '. If you want to specify an output filename of your own, use redirection:
Jad-p Example.class >myexm.java

Option-D allows you to specify the output file to another folder, which will be created by default in the current directory. For example:
Jad-o-dtest-sjava *.class
(or Jad-o-D test-s Java *.class, the two are the same)
This command compiles all. class files in the current directory and places all output files in the directory ' test ' with. java as the suffix name.

If you want to decompile the entire Java class tree, use the following command:
Jad-o-r-sjava-dsrc Tree/**/*.class
This command compiles all. class files in ' tree ' and subdirectories and establishes output files in the relative subdirectory of the ' src ' directory according to the package name of the class. For instance, if the text

The ' Tree/a/b/c.class ' contains the class ' C ' from the package ' a.b ', so the name of the number car file is ' Src/a/b/c.java '.

In case you want to check the accuracy of the output file or just be curious, here's an option-a, which lets Jad use Java Virtual machine bytecode as a comment added to the output file.

Jad supports internal classes and anonymous classes, which automatically skip matching inner classes when jad matches the wildcard character to the entered filename.


The following are a variety of counter compilers:

Java anti-compiler Java Decompiler

This counter compiler is called "Java Decompiler", developed by Pavel Kouznetsov, and the latest version is 0.2.5. It is developed by C + + and is officially available to download executable programs for Windows, Linux, and Apple Mac OS three platforms. It has the following functions: 1. Support to the entire JAR file decompile, and the source code can be directly clicked ... More Java Decompiler Information

Last update: JD GUI 0.3.4 released, Java anti-compiler tool released 1 years ago Java decompile tool Jad

Jad is a very broad use of Java decompile tools. More Jad Information

apk anti-compiler tool Gapktool

Powerful APK anti-compiler tool This software integrates Jd-gui, Jad, Dex2jar, Apktool please gapktool put it in the English path 1. Run Gapktool.bat 2.apk files and output directories using the English path default use Jad decompile, If the compiled Java code is difficult to read, choose to use Jd-gui to decompile. Preserve Smali file Delete Gen 、... More Gapktool Information

Dex2jar

Dex2jar is a tool used to convert the Android Dalvik executable (. dex) format file into a Java class file. More Dex2jar Information

Java anti-compiler plugin Jadclipse

Jadclipse is a Java-decompile plug-in that integrates eclipse more jadclipse information

Last update: Eclipse's decompile plugin Jadclipse 3.4.0 was released 4 years ago by the Java anti-compiler Jd-gui

Jd-gui is a Java decompile tool developed in C + +, developed by Pavel Kouznetsov, supports Windows, Linux, and Apple Mac OS three platforms. It also provides plug-ins under the Eclipse platform jd-eclipse more Jd-gui information

Java anti-compiler Jdec

Jdec is a java counter compiler. It can restore the bytecode that appears in a. class file to Java source code, and the result of the decompile is almost the same as the original Java file. It also brings with it a user interface developed using swing. More Jdec Information

Anti-compiler tool for Java class file Uudejava

Uudejava is the decompile tool for Java class files. The compiled Java source program is output to the same directory as class. Internal use of Jad.exe. When you decompile a class file, you can click the class file directly (after association) or select a file or directory to send to the Uudejava shortcut. You can also drag files or directories to the main window of the Uudejava. Pass... More Uudejava Information

SWF Anti-compile tool swfparser

Swfparser is a simple Java-written tool for Decompile SWF, and only supports Flash 8 and flash MX 2004,flash 9 not supported. More Swfparser Information

Dex File Anti-compile tool dedexer

Dedexer is the only open source tool [] that can be found on the internet to decompile a dex file. Dedexer must be compiled to use after downloading. If you have used ant to compile Java programs, compiling dedexer is a very simple task. More dedexer Information

"Commercial" Java anti-compiler DJ Java decompiler

Using the DJ Java Decompiler you can decompile the class file and save it as a text file or other format, which is easy to use. The DJ Java Decompiler is an anti-compiler in the Windows 2000,windows xp,windows 2003,windows vista,windows 7 environment, which can be recreated from the compiled binary class file ... More DJ Java Decompiler information

Java Reverse engineering software Minjava

Minjava is a Java reverse engineering software that helps to understand the architecture and behavior of some Java software that already exists. More Minjava Information


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.