Additionally, I noticed that it reports nothing, if JAVA_HOME is set, but doesn't point to a valid java home (also for -V):% JAVA_HOME=dummy /usr/libexec/java_home -v 1.7.0_45% JAVA_HOME=dummy /usr/libexec/java_home -V%解决方案是确保在执行/usr/libexec/java_home 之前未设置 JAVA_HOME :Solution is to ensure JAVA_HOME is not set before executing /usr/libexec/java_home:% unset JAVA_HOME ; /usr/libexec/java_home -v 1.8.0_162/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home 这篇关于升级到macOS Big Sur v11.0.1后错误的JAVA_HOME的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 1403页,肝出来的.. 09-06 09:28