Oracle now force user to signup and accept the license agreement in the oracle website.
JDK 8 is still mostly used among java developer especially Android Developer.
Unfortunately, if we're on macOS there's a bad news that the homebrew community delete the entire JAVA/JDk cask and give replacement support to use AdoptOpenJDK
.
brew tap adoptopenjdk/openjdk
brew cask install adoptopenjdk8
brew cask install adoptopenjdk9
brew cask install adoptopenjdk10
brew cask install adoptopenjdk11
Thanks to:
- https://stackoverflow.com/a/32811065/3763032
- https://github.com/AdoptOpenJDK/homebrew-openjdk
- Homebrew/homebrew-cask-versions#7253
That's it!
#homebrew #macos #jdk #java #cask #setup #android-studio #android #gradlew
To stay with a specific major release, activate the AdoptOpenJDK tap with brew tap and then install the desired version with brew cask install:
To install AdoptOpenJDK 14 with HotSpot, run: