Configuring the JAVAP command for Eclipse

Source: Internet
Author: User

The JAVAP command is commonly used to decompile Java class files, the tool used primarily for Java analysis, and as you learn thinking in Java , you need to decompile the class files to see what optimizations and processes the JVM has done to our code. I see, for example, how the JVM handles concatenation of strings using + =. Nonsense not much to say, below directly with the configuration of the tutorial:

Click the menu bar Run---> External tools---> External tools Configurations ... Then click New

Input:

Name:javap

Locations: Select the location of the Javap.exe file for your 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} indicates the name of the project;

${java_type_name} indicates 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 the reader can learn about it)

Arguments:-classpath represents the classpath of the JAVAP named search (bin indicates relative path relative to the project)-C means that the JVM bytecode will be generated here

Such as:

Then click Run and The following error may occur:

The above error shows that you did not select the Java file, then select a Java file, click javap, View the results of the anti-compilation, by the way, you may not know the configuration of the JAVAP command to go there to click, see where to click Javap:




Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Configuring the JAVAP command for Eclipse

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.