Note on macOS JAVA_HOME Command
The information property file, Info.plist, is in the top-level Contents
folder. This means that GraalVM participates in the macOS specific
/usr/libexec/java_home
mechanism. Depending on other JDK 8 installation(s)
available, it is now possible that /usr/libexec/java_home -v1.8
returns
/Library/Java/JavaVirtualMachines/graalvm-ee-20.3.0/Contents/Home
.
You can run /usr/libexec/java_home -v1.8 -V
to see the complete list of 1.8
JVMs available to the java_home
command. This command appears to sort the JVMs
in decreasing version order and chooses the top one as the default for the
specified version. Within a specific version, the sort order appears to be
stable but is unspecified.