install jdk on macOS

How to install Java 8 on Mac

brew update
brew cask install java

See also