系统版本:Mac OS X 10.9.1
在~/.profile 中增加环境变量JAVA_HOME 设置:
~/.profile
详见:http://www.micmiu.com/lang/java/set-javahome-on-mac-os-x/