进入sublime Text3安装目录下的package文件夹,用解压缩软件打开Java.sublime-package,
编辑里面的JavaC.sublime-build,修改最后一句
将文件改为
{ "cmd": ["javac", "$file_name", "&&", "java", "$file_base_name"], "working_dir": "${project_path:${folder}}", "selector": "source.java", "shell": true, "encoding":"cp936" }
即可