As Scott has pointed out on the VOTE thread. The current Java detection
will not work on the upcoming version of macOS since the + option has been
removed.

I believe removing the version flag should produce the same result as
specifying 1.8+. I.e the newest version installed on the machine.

% /usr/libexec/java_home --version 1.8+ --failfast
/Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home
% /usr/libexec/java_home --failfast
/Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home
% ls /Library/Java/JavaVirtualMachines
amazon-corretto-11.jdk amazon-corretto-8.jdk


--Christian

Reply via email to