Skip to content

Instantly share code, notes, and snippets.

@inkrement
Forked from DevinClark/JavaCandR.sublime-build
Created August 31, 2012 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inkrement/3550426 to your computer and use it in GitHub Desktop.
Save inkrement/3550426 to your computer and use it in GitHub Desktop.
This is a build script for Sublime Text 2 that will compile and run the open java file by simply pressing cmd + B. I am very new at Java so feel free to point out problems with this script. You can just drop this file in the User Packges folder and restar
{
"cmd": ["javac", "$file_name"],
"cmd": ["java", "$file_base_name"],
"working_dir": "${project_path:${folder}}",
"selector": "source.java"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment