code for sublime text to run java

 

"cmd": ["javac", "$file_name", "&&", "java" ,"$file_base_name"], 

"selector": "source.java",

 "file_regex": "^\\s*File \"(...*?)\", line ([0-9]*)",

 "path" : "C:\\Program Files\\Java\\jdk-14.0.1\\bin",

 "shell":true

 } 

Comments