Eclipse中javap.exe命令的配置及其使用:
① 点击Run External tools Configurations
② 点击Program 右键 New
③ Name:javap
Location:安装JDK的bin目录下的javap.exe的路径
working Directory:${workspace_loc}/${project_name}
Arguments:-classpath target/classes -c ${java_type_name}
④ apply
演示:
写一个普通的接口
public interface IConstants {
String MON = "Mon";
String TUE = "Tue";
String WED = "Wed";
String THU = "Thu";
String FRI = "Fri";
String SAT = "Sat";
String SUN = "Sun";
}
通过这个javap命令运行
控制台打印结果:
写一个helloworld
public class Test {
public static void main(String[] args) {
System.out.println("HelloWorld");
}
}
控制台打印结果:
打印结果解释,后续更新