您的位置:首页 > 编程语言 > Java开发

mac电脑,eclipse设置jdk_home

2015-06-27 00:00 495 查看
Use the
/usr/libexec/java_home
utility which returns the path to the preferred JVM version.
With
/usr/libexec/java_home -V
you can retrieve a list of all installed JVMs.

The easiest way to set up
$JAVA_HOME
is:
export JAVA_HOME=$(/usr/libexec/java_home)

This will always set the path to the latest JVM, so you don't have to update it after upgrading java.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: