Update your Ubuntu to Java 7

Download last release from oracle.com, I downloaded jdk-7u1-linux-x64.tar.gz.

Unzip it: tar xvf jdk-7u1-linux-x64.tar.gz

Copy to right place: sudo cp -r jdk1.7.0_01 /usr/lib/jvm

Create java7 alternative: sudo update-alternatives –install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_01/jre/bin/java 1

Choose the alternative: sudo update-alternatives –config java

You can choose between many jvm’s easily.

enjoy!!

One thought on “Update your Ubuntu to Java 7

  1. Thanks for the guide. It made it so much easier for me to install.

    I have a small correction though, as the “single dash” did not work for me.

    In my ubuntu I had to write:

    Create java7 alternative: sudo update-alternatives –-install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_01/jre/bin/java 1

    Choose the alternative: sudo update-alternatives –config java

    Best regards,
    Mikkel

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.