Skip to content

Instantly share code, notes, and snippets.

@jfcalvo
Created September 26, 2012 18:21
Show Gist options
  • Save jfcalvo/3789664 to your computer and use it in GitHub Desktop.
Save jfcalvo/3789664 to your computer and use it in GitHub Desktop.
Sublime Text 2 Build System for Java (Compile and running)
{
"cmd": ["javac \"$file_name\" && java \"$file_base_name\""],
"shell": true,
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java"
}
@JMatharu
Copy link

Hi, can you tell me how this compiler will work on sublime 3 or even 2, i am not able to fix this issue. I followed the way ho install from github but dint worked out. Thanks in advance

@SourceVision
Copy link

This worked for me on ST3!

Thanks

@gordonpn
Copy link

Thank you so much for posting this!

@YA2O
Copy link

YA2O commented Sep 3, 2014

Thx! Works for me on Sublime Text 2 build 2221, OS X 10.9.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment