Skip to content

Instantly share code, notes, and snippets.

@dblandin
Created June 15, 2012 22:02
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dblandin/2938921 to your computer and use it in GitHub Desktop.
Save dblandin/2938921 to your computer and use it in GitHub Desktop.
Sublime Text 2 Java Build and Run
#!/bin/bash
# compiles all java files within directory and runs first argument
for file in *.java
do
echo "Compiling $file"
javac $file
done
echo "Running $1"
java $1
{
"cmd": ["build_java.sh", "$file_base_name"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment