天天看点

在ubuntu 10.04 上安装sun jdkInstalling Oracle (Sun) JDK 6 on Ubuntu 10.04

Installing Oracle (Sun) JDK 6 on Ubuntu 10.04

Posted by Radoslav Bogdanovic - 2011/04/08 - Java, Linux - No Comments

To install Oracle (Sun) JDK 6 on Ubuntu do the following steps

First to get the add-apt-repository support do the following command

sudo apt-get install python-software-properties

Then

sudo add-apt-repository ppa:sun-java-community-team/sun-java6
sudo apt-get update
sudo apt-get install sun-java6-jdk
# to set this as default java version
sudo update-java-alternatives -s java-6-sun       

Finally do a test with

java -version

Almost the complete description of this installation was taken from the blog post http://thilina.gunarathne.org/2011/02/installing-sun-oracle-jdk-6-on-ubuntu.html

These steps were successfully executed on Ubuntu 10.04 64-bit. However in the original post this was done on Ubuntu 10.10.

It might seem as a bit unnecessary to duplicate most of the steps from an already existing blog post. However this is more for my own reference and on occasion blogs and useful posts disappear.

转载地址:http://www.bogdanovic.se/installing-oracle-sun-jdk-6-on-ubuntu