The default installation path of jdk under mac: /Library/Java/JavaVirtualMachines
Execute the instruction-get the java-jdk installation path
// 它将向您显示Mac中安装的所有JDK版本。
/usr/libexec/java_home -V
Results of the:
// 安装路径如下
cd /Library/Java/JavaVirtualMachines/
ls
jdk official website
https://www.oracle.com/java/technologies/downloads/