将下面的代码粘贴到JavaC.sublime-build中:
{ "cmd": ["javac \"$file_name\" && java \"$file_base_name\""], "shell": true, "file_regex": "^(...*?):([0-9]*):?([0-9]*)", "selector": "source.java" }
转载请注明:转自http://blog.csdn.net/u010811449/article/details/9456059