-
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,
cdinto/usr/libexecfrom a terminal window -
From the
libexecdirectory, verify all installed Java versions by running the command:./java_home -V -
Open your shell config file
- zsh & vscode users, run:
code ~/.zshrc