install jdk mac homebrew code example Example: install java runtime mac brew $ brew cask install java