Ubuntu: change the path from OpenJDK 6 to Oracle JDK 7

前端 未结 5 1185
花落未央
花落未央 2020-12-13 20:25

After downloading the latest .tar file I ran tar zxvf jdk-7u45-linux-x64.tar.gz to extract java files.

Set the path in .bashrc file (

5条回答
  •  情歌与酒
    2020-12-13 20:45

    Running command in terminal:

    sudo update-alternatives --config java 
    

    from the command line to set the version of the JRE you want to use as like available version install of java : 1.6 and 1.8
    See below :

    and choose 1 option and set java-6 version because already current choice set in java-8.

提交回复
热议问题