Install OpenJDK 11 on macOS

Install using HomeBrew Manual Install from AdoptOpenJDK See: Manual Install from Update download url based on the latest version available in this download page: Listing Installed JDK Version Switching JDK Version Get JAVA_HOME path and set it to environment variable. Add the following to ~/.bashrc , ~/.zshrc etc. JShell Also see: