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