
And to easily switch in between versions, I can create an alias in my. brew tap homebrew/cask-versionsīrew install -cask temurin8 Using multiple Java versionsĪfter I upgrade to OpenJDK Temurin 17 LTS, I still want to keep the previous versions of my Java.

To use a different version of Java, you need to activate a third-party repository (TAP). This time I will get it from a new source since the AdoptOpenJDK repository is now deprecated. Upgrade to OpenJDK Temurin 17 LTS by Eclipse. But I still want to manage my Java versions using Homebrew.

This time, I will upgrade my environment to Java 17. In my previous post about Setting up Maven Cucumber, I used AdoptOpenJDK to install Java 11. How to upgrade OpenJDK in MacOS using brew?
