Setting Java home enviroment variable in OSX Mavericks

前端 未结 2 1407
故里飘歌
故里飘歌 2021-01-27 08:56

I am having issues with my Java path.

I have installed the latest version of Java 1.7.0_51. When I open the Java control panel it tells me \"Your system has the

2条回答
  •  [愿得一人]
    2021-01-27 09:17

    Check whether there is an old version existed in the path

    echo $PATH
    

    Then set the java 1.7 bin directory.

    export PATH=/usr/libexec/java_1.7_home/bin:$PATH
    

    Then try to type in "java -version" in terminal to check the version

提交回复
热议问题