Created
March 21, 2014 04:55
-
-
Save electrum/9679758 to your computer and use it in GitHub Desktop.
Mac Java version scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -eu | |
export JAVA_HOME=$(/usr/libexec/java_home -v 1.6) | |
export PATH=$JAVA_HOME/bin:$PATH | |
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -eu | |
export JAVA_HOME=$(/usr/libexec/java_home -v 1.7) | |
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