1、配置
- Run---external tools---external tools configurations
- 选择Program 新建javap运行方式
- 设置location、workspace等选项
如下图:
注意:
- workding directory 设置为 ${workspace_loc}/${project_name} ,
- Arguments -c -verbose -classpath ${workspace_loc}/${project_name}/bin ${java_type_name}
- 如果设置错误会提示cannot find xxx类的错误,或者是有关java_type_name empty的错误arguments要加上java_type_name,否则会提示No classes were specified on the command line
2、Run