how to install jdk 8 using brew code example Example: brew install jdk 8 brew tap adoptopenjdk/openjdk brew cask install adoptopenjdk8