Download Red Hat build of OpenJDK for Mac
Install OpenJDK on macOS
Red Hat build of OpenJDK is not available for Mac.
However, there’s Temurin, a version of OpenJDK that Red Hat actively contributes to that’s available for Mac.
Install the latest LTS version:
brew install –cask temurin
Install a specific version with Homebrew:
brew tap homebrew/cask-version
brew install --cask temurin17
brew install --cask temurin11
Uninstall a specific version:
brew uninstall --cask temurin