Created
April 27, 2015 03:34
-
-
Save jonas8/a3309c838740c5706a26 to your computer and use it in GitHub Desktop.
Switching easily between Java JDKs on Mac OS X (.zshrc)
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
alias setJdk6='export JAVA_HOME=$(/usr/libexec/java_home -v 1.6)' | |
alias setJdk7='export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)' | |
alias setJdk8='export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment