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

partner-repos

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

java

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

Is done !.

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *