Created
August 2, 2012 07:00
-
-
Save tsuyo/3234646 to your computer and use it in GitHub Desktop.
JavaC.sublime-build to both compile & run a Java class at the same time for Sublime Text 2
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
{ | |
"cmd": ["sh", "-c", "javac $file_base_name.java && java $file_base_name"], | |
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |
"selector": "source.java" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! I have played a little bit with it and it turns out that you can only run classes contained within default folder.
I had to run this on Windows so I have also provided version for windows. If you are interested - look at my fork.