Created
May 8, 2014 06:58
-
-
Save musketyr/2ac8d2c71e0495e18049 to your computer and use it in GitHub Desktop.
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
# Change your JAVA_HOME | |
function setjdk() { | |
if [ $# -ne 0 ]; | |
then export JAVA_HOME=`/usr/libexec/java_home -v $@`; | |
fi; | |
java -version; | |
} | |
# Automatically set the JAVA_HOME | |
setjdk 1.7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment