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