Using HomeBrew to Install Java JDK11 on macOS
Using macOS 10.15.5
Published in
1 min readJul 6, 2020
First, I will install HomeBrew on macOS as the following:
1. Update HomeBrew and add the casks tap of HomeBrew.
$ brew update
$ brew tap homebrew/cask-versions
2. Install Version 11 of Java JDK.
$ brew cask install java11$ java --version
-------------------------------------------------
openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
-------------------------------------------------
Other: Install the Last Version of Java JDK Currently
$ brew cask install java