Member-only story
How to Manage Multiple Java Versions in MacOS (Updated 2023 + macOS Ventura)

I have been using multiple versions of Java with a Version Manager on my Mac for a while, whenever I need to switch between different projects which use different versions of Java this feature becomes handier so I thought of sharing with you how you can use a Java Version Manager-jEnv in your daily work in order to switch between multiple Java versions.
Overview of Java JDK flavors
Alright; I hope you have already used or been using Java on your machine, if yes; you are probably aware that we have two main flavors of JDK in the market; if you don’t know here are the main two:
Apart from the above main two, there are other different flavors which maintain by different companies and open-source communities. Here you can see a few of them listed under the section “OpenJDK builds”, Among those AdoptOpenJDK becoming more popular among the Java community.
Key differences:
1. The biggest difference in OpenJDK vs. Oracle JDK is in licensing. OpenJDK is completely open source while Oracle JDK requires a commercial license.
2.. Oracle will deliver releases every three years, while OpenJDK will be released every…