修改 /Users/$用户名/Library/Application Support/Sublime Text 2/Packages/Java/JavaC.sublime-build为:复制代码代码如下: { “cmd”:[“java”,“$file_base_name”], "file_regex": "^ *//[javac//] (.+):([0-9]+):() (.*)$", “选择器”:“源.java” }