
The installation process may take some time to complete depending on your network speed. OpenJDK 64-Bit Server VM Homebrew (build 11.0.16.1+0, mixed mode) OpenJDK Runtime Environment Homebrew (build 11.0.16.1+0) Once the installation finished, verify the installed Java version. The /usr/libexec/java_home command returns a path suitable for setting the JAVA_HOME environment variable. It determines this path from the preferred JVMs in the Java Preferences application. Use the below steps to configure JAVA_HOME environment variable.

Use java_home command with -V option to list all the JVM configured on your macOS.Also, know about switching to the default Java version.
