
Press enter to keep the current choice, or type selection number: 3 3: There are 3 choices for the alternative java (providing /usr/bin/java).ģ /usr/lib/jvm/jre1.7.0/jre/bin/java 3 manual mode You will see output similar one below - choose the number of jre1.7.0 i.e.

Now configure java to use the Oracle Java JRE sudo update-alternatives -config java This will add your new JRE 7 installation into alternatives list i.e. If only one alternative is shown then remember the number 0 sudo update-alternatives -install /usr/bin/java java /usr/lib/jvm/jre1.7.0/bin/java 3 Remember the last number and press enter to exit this utility i.e. Press enter to keep the current choice, or type selection number: * 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto modeġ /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual modeĢ /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode You will get output as: There are 2 choices for the alternative java (providing /usr/bin/java).

jre1.7.0* /usr/lib/jvm/jre1.7.0Īfterwards run the following to get a list of currently installed java alternatives sudo update-alternatives -config java Now move the JRE 7 directory to /usr/lib sudo mv. There is a similar question on how to install JDK 7 Install the JREĭownload the 32bit or 64bit Linux "compressed binary file" - it has a ".tar.gz" file extension and uncompress it tar -xvf
