Skip to content

Instantly share code, notes, and snippets.

@electrum
Created October 10, 2012 21:42
Show Gist options
  • Save electrum/3868639 to your computer and use it in GitHub Desktop.
Save electrum/3868639 to your computer and use it in GitHub Desktop.
Run command under Java 6 on Mac OS X
#!/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