Application of Jd-eclipse plugin to implement reverse compilation of. class files in RFT

Source: Internet
Author: User
Tags win32

Overview

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 has been 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 an 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, do not need to separate Applies a reverse compiler to do the work of direction compilation.

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 reverse compiler software jd-eclipse. Jd-eclipse is a plug-in Eclipse platform. It allows you to debug all Java source code. In order to explain the Jd-eclipse 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 using the "Install Update Software" option in RFT; This article will mainly describe the installation method for manual installation.

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 this paper as an example of Windows platform.

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

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.