Eclipse Configuration Javap Command method _java

Source: Internet
Author: User

JAVAP commands are often used to decompile Java class files, mainly used to analyze Java tools, in learning thinking in Java, because of the need to decompile the class file to see what the JVM in the end of our written code to do what optimization and processing, such as I see the use of + = How the JVM is handled when stitching strings. Nonsense not much to say, below directly with the configuration of the tutorial:
Click on the menu bar Run---> External tools---> External tools configurations ... Then click New on the following figure

Input:
NAME:JAVAP
Locations: Select the location of the Javap.exe file for the JDK
Working Directory: ${workspace_loc}/${project_name}
Arguments:-classpath bin-c ${java_type_name}
Description: ${workspace_loc} indicates the path where the workspace is located;
${project_name} represents the name of the project;
${java_type_name} represents the class name (full name) of the selected Java file;
The above variables can be selected by the variables button at the bottom right of each column. (For some other variables, readers can learn about them)
Arguments:-classpath represents the classpath of the JAVAP named search (the bin representation is relative to the project)-C indicates that the JVM bytecode is generated here
The following figure:

Then click Run, and you may receive the following error:

The above error shows that you do not select the Java file, then select a Java file, click Javap, see the results of the decompile, by the way, you may not know the configuration of the JAVAP command to click There, look at the map to know where to click on the JAVAP:

The above is the entire content of this article, I hope to help you learn.

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.