前置条件:
1.下载JDK,配置java环境
2.已下载SublimeText3
打开sublimeText软件,tools=>Build System=>new Build System
输入以下内容:
{
"shell_cmd": "javac $file_name && java $file_base_name",
"working_dir": "${project_path:${folder}}",
"selector": "source.java"
}
取名为:“MyJavaBuild.sublime-build”
tools=>Build System=>选中“MyJavaBuild”,重启就OK了