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.