: Open your Terminal app and type: java -version It should display java version "1.8.0_311" . Important Compatibility Notes
Running outdated Java runtimes on a connected machine is a significant security risk. jre-8u311-macosx-x64.dmg download
: If java -version shows a different number, you may have multiple versions of Java installed. You can manage these by editing your .zshrc or .bash_profile to point to the correct JAVA_HOME . If you'd like, I can help you with: Finding the latest secure version of Java 8. Setting up Environment Variables on macOS. Troubleshooting specific Java error codes . : Open your Terminal app and type: java