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