Last active
August 29, 2015 14:12
-
-
Save bdelacretaz/8d561b0322caf18b7466 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
# switch jdk on macosx | |
# thanks to @jreijn for the --version trick | |
# see http://blog.frd.mn/java-7-on-os-x-yosemite/ for Java7 install trick | |
export JAVA_HOME=`/usr/libexec/java_home --version $1` | |
export PATH=$JAVA_HOME/bin:$PATH | |
# this just confirms that we have the right JDK now | |
java -version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment