

SDKMAN is a bit different and handles both the install and the switching. Installing and Switching versions with SDKMAN

These two primary options are described here. However, there are easier options such as SDKMAN and asdf that also will install other important and common tools for the JVM. The advantage of a manual install is that the location of the JDK can be placed in a standardized location for Mac OSX. You can install Java using whatever method you prefer including SDKMAN, asdf, Homebrew, or a manual install of the tar.gz file. TL DR - Preferred Methods of Installation Switching can be done by JEnv, SDKMAN, asdf, Jabba or manually by setting JAVA_HOME. Installation can be done by Homebrew, SDKMAN, asdf, Jabba, or a manual install. You have a few options for how to do the installation as well as manage JDK switching. Easily work with Java 7, Java 8, Java 9, Java 10, Java 11, Java 12, Java 13, Java 14, Java 15, Java 16, and Java 17! This includes alternative JDK's from OpenJDK, Oracle, IBM, Azul, Amazon Correto, Graal and more. Note: These solutions work for various versions of Java including Java 8 through Java 17 (the LTS version).
