1、Eclipse中Run->External Tools->External Tools Configurations,打开看到如下界面:
2、右键点击Program->new,然后出现界面:
3、然后配置Location、Working Directory、Arguments:
- Location:
C:\Program Files\Java\jdk1.7.0_80\bin\javap.exe
- Working Directory:
${project_loc}
- Arguments:
-classpath target/classes -c ${java_type_name}
配置完成后,如界面:
4、每次点击run时,需要先选择到需要编译的类上面,不然会报错:
The selected resource does not resolve to a Java element