How to install latest JRE java version in Ubuntu 10.10 Maverick meerkat via PPA

In order to run Java programs, you must have a Java run time environment (JRE) installed. To run Java web applets in your browser, you additionally need a plugin for your browser, which is not installed by default. In this post i will show you 2 ways to install Java, The first how to install Java6 from partner repository and the second how to have the latest stable version of java from PPA repository.

1- If you want to install Java run time in ubuntu 10.10 Maverick meerkat , you need to activate first the partner repository, to do that, go to System–>Administration–>Synaptic package manager then go to settings–> repositories and activate canonical Partners


Then open terminal and type the folowing command:

sudo apt-get install sun-java6-jre sun-java6-plugin


2- If you want to install the latest java version in Ubuntu 10.10 Maverick Meerkat, open terminal and enter the following commands:

sudo add-apt-repository ppa:sun-java-community-team/sun-java6
sudo apt-get update
apt-cache search java

If you have various versions of Java installed and you want to change the default one, open terminal and type the command :

sudo update-alternatives --config java


Type selection number of java you want to have by default and press enter.

Is done !.

  • jackson

    oh my god!
    this is wrong!
    not exist, more
    sudo apt-get install sun-java6-jre , in the ubuntu 10.10……
    love of god!

  • jackson


    all ok

    thanks,,,, alright

  • zachariakassim

    i want install javase6 develepment
    kit in ubuntu 10.10, please inform
    me step by step from where to downl
    oad and and how to install

  • amondo

    please look at ‘update-java-alternatives’ instead of ‘update-alternatives’ i think it is a better idea

  • Ganesan

    Thank you very much friend.

  • Ganesan


    the above repository not working.. find the working repository