一下步骤之前请先确保已安装java JDK
1.首先找到sublime安装目录(如:E:Sublime Text Build 3176 x64Packages)
2.用压缩软件打开Java.sublime-package
3.打开JavaC.sublime-build,复制如下段进去
{
"shell_cmd": "javac -encoding utf-8 "$file" && java "$file_base_name"",
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java",
"encoding":"cp936",
}
4.保存重启sublime
5.写好程序ctrl + b 就好