execute on ?termanel to get current jdk path:
/usr/libexec/java_home
?
get java path:
which java
readlink /usr/bin/java
mac下查找已经安装的java home路径
原文:http://himichaelchu.iteye.com/blog/2303869