My Java version is the newest version but my JVM is still 1.5?

前端 未结 5 547
误落风尘
误落风尘 2021-01-24 01:45

Recently I tried to use Eclipse but when I open it,it told me my JVM verion is too old

Incompatible JVM
Version 1.5.0_05 of the JVM is not suitable for this prod         


        
5条回答
  •  盖世英雄少女心
    2021-01-24 02:14

    In your ~/.bashrc file add the following lines

    export JAVA_HOME=/home/username/jdk1.7.0_11
    export JDK_HOME=$JAVA_HOME
    export PATH=$JAVA_HOME/bin:$PATH
    export CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
    

    in place of jdk1.7.0_11 put your JDK and see to it that the specified path is correct(wherever you have youe JDK).

提交回复
热议问题