This paper describes how to apply jd-http://www.aliyun.com/zixun/aggregation/13428.html ">eclipse plug-in to implement the reverse compilation of the. class file in RFT, this method is simple and practical, and uses Jd-eclipse plug-ins are applied to RFT, so RFT has more applications, which facilitates the user's operation of the. class file, and does not need to apply the reverse compiler to compile the direction separately.
Decompile is the process of translating the target code into source code. The target code is a language-represented code that can be executed directly by a real machine or virtual machine. The text is about a jd-eclipse open source software that is applied to the Eclipse development platform, and it helps developers to display all the Java source code during the debugger process, facilitating developer development.
Installation and configuration of Jd-eclipse
The Advanced Language source program is compiled into an executable file, and reverse compilation is its inverse process. However, because of the complexity of the reverse compilation, the executable file can not be turned into high-level language source code, only to be converted into assembler. This paper introduces how to use Jd-eclipse plug-in to realize the reverse compilation of RFT. class file, this method is simple and practical, the application of Jd-eclipse plug-in to RFT, so that the RFT has more aspects of the application, to facilitate the user to the. class file operation, There is no need to apply the reverse compiler to the direction-compiling process separately.
When the C compiler compiles the object code for a particular hardware platform, the target code is generated, and in the compilation process, the compiler converts the reference of all symbols to a specific amount of memory compilation by look-up table. The target code can only run on a specific CPU. The Java compiler, in order to ensure the portability of the target code, does not compile references to variables and methods as numeric references or memory layouts during program execution, but instead preserves the symbolic reference information in bytecode, creating a memory layout by the Java Virtual machine during operation. Then check the table to determine the address of a method. Because of its relatively simple Java virtual machine and canonical bytecode format, the process of decompile from Java bytecode to source code is simpler than the C language, so the current decompile Java program is very popular.
At present, there are a variety of Java-based decompile software, the following article will introduce an open source of the Jd-eclipse software. Jd-eclipse is a plug-in Eclipse platform. It allows you to debug all Java source code. In order to explain Jd-eclipse's application method more detailed, the following mainly introduces the installation and configuration process of jd-eclipse, so that developers can use more quickly and conveniently.
There are currently two ways to install the Jd-eclipse plug-in. The first is to install it using the "Install Update Software" option in RFT;
1. Download the appropriate installation file: Jd.ide.eclipse_x.x.x.jar;jd.ide.eclipse.win32.x86_ X.x.x.jar;jd.edi.eclipse.feature_x.x.x.jar. The Jd-eclipse plugin provides a corresponding jar file for the Liunx,mac platform, which is described in the Windows platform as an example.
2. Copy jd.ide.eclipse_x.x.x.jar;jd.ide.eclipse.win32.x86_ X.x.x.jar These two jar files to the plugins path under the folder where RFT is installed.
Figure 1. Copy the jar file into the plugins
3. Copy the Jd.edi.eclipse.feature_x.x.x.jar file to the features path under the folder where RFT is installed.
Figure 2. Copy the jar file into the features
4. Reboot the RFT.
5. Open Rft,windows->preferences->general->editors->file assciation and set Class File Editor to default.
Figure 3. Set the default display
For a class that has the original code, he will not force decompile, which means he will still be using the eclipse's own class file viewer to view the class files.