美文网首页
JAVA_HOME is not defined

JAVA_HOME is not defined

作者: 刘贺tibic | 来源:发表于2016-07-07 17:20 被阅读0次

    $ vim .bash_profile

    在vim打开文件中输入:export JAVA_HOME=$(/usr/libexec/java_home)

    $ source.bash_profile

    $mvn -version

    Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00)

    Maven home: /usr/local/apache-maven/apache-maven-3.3.9

    Java version: 1.7.0_80, vendor: Oracle Corporation

    Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre

    Default locale: zh_CN, platform encoding: UTF-8

    OS name: "mac os x", version: "10.11.5", arch: "x86_64", family: "mac"

    相关文章

      网友评论

          本文标题:JAVA_HOME is not defined

          本文链接:https://www.haomeiwen.com/subject/gzeljttx.html