修改 /Users/$username/Library/Application Support/Sublime Text 2/Packages/Java/JavaC.sublime-build为:复制代码代码如下: - "cmd": ["java", "$file_base_name"], "file_regex": "^ *//[javac//] (.+):([0-9]+):() (.*)$", "selector": "source.java" -