您的位置:首页 > 编程语言 > Java开发

在ubuntu 10.04 上安装sun jdk

2012-04-07 18:37 423 查看

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息