➜ /usr/libexec/java_home -V
The red box area shows the JDK version and installation directory installed on the current mac.
The last line indicates the JDK version used by default.
➜ /usr/libexec/java_home -V
The red box area shows the JDK version and installation directory installed on the current mac.
The last line indicates the JDK version used by default.