打开终端,输入:/usr/libexec/java_home -V 注意:输入命令参数区分大小写(-v是不对的,必须是-V)
常用的命令
原文:https://www.cnblogs.com/xiaoweiday/p/12593466.html