1.JDK下载网址:https://www.oracle.com/technetwork/java/javase/downloads/jdk10-downloads-4416644.html 2.打开终端,输入:/usr/libexec/java_home -V注意:输入命令参数区分大小写(-v是不对的,必须是-V)