-
-
Save arjamizo/cdedf5968ee26fa5ecda to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"windows": { | |
"cmd": ["cmd", "/c", "mkdir bin 2> nul & echo CD %cd% & echo Path %path% & echo Note that this script works only for default package & javac -d bin $file && echo Build successful. && java -cp bin ${file_name/\\.java//}"] | |
}, | |
"linux": { | |
"cmd": ["sh", "-c", "javac $file_base_name.java && java $file_base_name"] | |
}, | |
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |
"selector": "source.java" | |
} | |
/* | |
To test paste this to ST3 and run! | |
public class Launcher { | |
static { | |
System.out.println("Hello ST3!"); | |
} | |
public static void main(String[] args) { | |
} | |
} | |
You will see output in console. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment