March 21, 2012 · General · Email This Post

Java is a programming language and computing platform first released by Sun Microsystems in 1995. It is the underlying technology that powers state-of-the-art programs including utilities, games, and business applications. Java runs on more than 850 million personal computers worldwide, and on billions of devices worldwide, including mobile and TV devices.

Preparing your system

First you need to remove openjdk for this run the following command from your terminal

sudo apt-get purge openjdk*

If you installed java 7 from any other PPA and you are having problem with java then you have to do following steps before installing the PPA menctioned here

sudo rm /var/lib/dpkg/info/oracle-java7-installer*
sudo apt-get purge oracle-java7-installer*
sudo rm /etc/apt/sources.list.d/*java*
sudo apt-get update

Install oracle java 7 in ubuntu 13.04/12.10/12.04

Open the terminal and run the following commands

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

You can check the java version by searching java in dashboard

Incoming search terms:

Related posts

58 Comments to “How to install oracle java 7 in ubuntu 13.04/12.10/12.04”

  1. merab says:

    Just great! the only answer, i’ve finally found to this problem…opensource java does not work…thanks

    [Reply]

  2. Jacob Harding says:

    This worked but I would recommend using the Ubuntu Software Center rather than purging file and applications.

    [Reply]

    Alexander Reply:

    USC uses just the same commands.

    [Reply]

  3. Shanmukh says:

    Thanks a lot for the post. It worked for me!.

    [Reply]

  4. Michael says:

    Thank you very much, I love you bro!!!!! lmao

    [Reply]

  5. karthikeyan says:

    Thank you so much !!! may the force be with you !

    [Reply]

  6. Felipe Duarte says:

    Great, this tutorial is very good because was helped me a lot.

    [Reply]

  7. G says:

    thanks for the help :) works on BT like this also

    [Reply]

  8. Alison says:

    Fantastic, thanks! Works on Ubuntu 11 also.

    [Reply]

  9. Flavian says:

    Thank you man. Works on Ubuntu 13.04!

    [Reply]

Leave a Reply