Created
June 30, 2018 03:46
-
-
Save franzwong/540fe61c03ec359c72869e12f8cf3d69 to your computer and use it in GitHub Desktop.
Switch java version
This file contains hidden or 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 j10="export JAVA_HOME=`/usr/libexec/java_home -v 10`; java -version" | |
alias j9="export JAVA_HOME=`/usr/libexec/java_home -v 9`; java -version" | |
alias j8="export JAVA_HOME=`/usr/libexec/java_home -v 1.8`; java -version" | |
alias j7="export JAVA_HOME=`/usr/libexec/java_home -v 1.7`; java -version" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment