Posts

Showing posts from July, 2019

Install and Switch multiple versions of OpenJdk on Mac OS

While working on enterprise level, we often have java projects running on older versions of java for legacy reasons. Hence it is not very uncommon for a developer to have multiple versions of JDK installed in their machines and easy way to switch different versions of JDK on demand for running the build. This blog explains the steps needed to setup and configure multiple JDK versions on Mac OS. Download and extract multiple OpenJdk from Adapt OpenJdk $ wget "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u212-b04/OpenJDK8U-jdk_x64_mac_hotspot_8u212b04.tar.gz" -P /Users/macuser/openjdk $ tar -xvzf /Users/macuser/openjdk/OpenJDK8U-jdk_x64_mac_hotspot_8u212b04.tar.gz -C /Users/macuser/openjdk $ wget "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.3%2B7/OpenJDK11U-jdk_x64_mac_hotspot_11.0.3_7.tar.gz" -P /Users/macuser/openjdk $ tar -xvzf /Users/macuser/openjdk/OpenJDK11U-jdk_x64_mac_hotspot_11.0.3_7.tar...