-
Verify the default Java version in terminal by running the command:
java -version
-
Download the appropriate JDK from Oracle website for Mac OS
-
After installation completes,
cd
into/usr/libexec
from a terminal window -
From the
libexec
directory, verify all installed Java versions by running the command:./java_home -V
-
Open your shell config file
- zsh & vscode users, run:
code ~/.zshrc