![]() java11Īnd that’s it for this quick tutorial. export JAVA_17_HOME=$(/usr/libexec/java_home -v 17)Įxport JAVA_11_HOME=$(/usr/libexec/java_home -v 11.0.11)Įxport JAVA_8_HOME=$(/usr/libexec/java_home -v 1.8.0_242)Īlias java17="export JAVA_HOME=$JAVA_17_HOME"Īlias java11="export JAVA_HOME=$JAVA_11_HOME"Īlias java8="export JAVA_HOME=$JAVA_8_HOME" Installation of the JDK on macOS: Instructions include steps to install the JDK on the macOS platform. 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. In the JDK installation location, jdk-11 and jdk-11.0.1 directories get created. For example, you can install JDK 11 and JDK 11.0.1 simultaneously. Update version of JDK does not replace the previous version, however, a new directory is created. But I still want to manage my Java versions using Homebrew. You can install two versions of JDK simultaneously. 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?
0 Comments
Leave a Reply. |