Created
November 23, 2018 13:51
-
-
Save haroonabbasi/c176620c5fa89a1441b9ff00bb9fec47 to your computer and use it in GitHub Desktop.
switch between different version of java
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 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