Skip to content

Instantly share code, notes, and snippets.

@electrum
Created September 27, 2013 01:27
Show Gist options
  • Save electrum/6722990 to your computer and use it in GitHub Desktop.
Save electrum/6722990 to your computer and use it in GitHub Desktop.
java6
#!/bin/sh -eu
export JAVA_HOME=$(/usr/libexec/java_home -v 1.6)
export PATH=$JAVA_HOME/bin:$PATH
exec "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment