Last active
July 30, 2018 12:42
-
-
Save dfang/6221af695d31e40cdca9db14a0645edb to your computer and use it in GitHub Desktop.
Install Java via Homebrew (brew) on Mac OSX and set JAVA_HOME
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
macOS high sierra include java jdk 1.8. | |
``` | |
java -version | |
ls -al `which java` | |
``` | |
but if you want to update, | |
``` | |
brew search java | |
brew cask install java | |
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
To see which java versions are currently installed: