How does the JavaLauncher App choose a Java version, and how can I change the version it chooses?
If I have multiple versions of Java installed on my Mac, the Java Launcher (/System/Library/CoreServices/JavaLauncher) picks a version to run. It seems to use a version that matches the java_home (/usr/libexec/java_home) default, but there doesn't seem to be a way to change that value.
How does the JavaLauncher choose a java executable? Is there a way to tell it to use a different one?
While I'm using macOS Ventura, this is very likely to be an issue that impacts previous versions.
MacBook Pro (2017 – 2020)