View jdk version installed under 1. Mac and its installation directory
1, open the terminal, enter: / usr / libexec / java_home -V
Note: Enter the command parameters are case sensitive (-v is wrong and must be -V)
jdk installation and configuration environment variable: https://blog.csdn.net/vvv_110/article/details/72897142