Skip to content

Instantly share code, notes, and snippets.

@faruktoptas
Created August 22, 2013 19:25
Show Gist options
  • Save faruktoptas/6311652 to your computer and use it in GitHub Desktop.
Save faruktoptas/6311652 to your computer and use it in GitHub Desktop.
Sublime Text 2 Java compile build settings. Place jcompile.sh in /usr/bin directory then make it executable.
#!/bin/bash
file=$1
basename="${file%%.*}"
javac $file
java $basename
{
"cmd": ["jcompile.sh", "$file_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