Java Runtime For Mac ⇒

If you installed via Homebrew or manually, the standard way to switch versions is creating an alias or using a tool called .

brew install jenv jenv add /Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home jenv global 17.0

Often required for legacy business apps or older game versions.

# List all installed JREs/JDKs /usr/libexec/java_home -V