when I choose c++ in Bulid System , I notice there is "Run" command below. However, when I choose JavaC in Build System , The "Run" label is missing. how can I add this label to compile and run java ? what's more, among the answers in Compiling and Running Java Code in Sublime Text 2 , I prefer @vijay's than any other ones, but when I config the following code as he suggested, It does not work when I type "shift+ctrl+b" to run java program
{
"cmd": ["javac", "-Xlint", "$file"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java",
"variants": [
{ "cmd": ["java", "$file_base_name"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java",
"name": "Run Java"
}
]
}