Installing Sun Java 6 in Ubuntu 10.04

Posted: December 14, 2010 in HowTo
Tags: , , , ,

To install Sun Java 6, follow the steps below

Sun Java 6 has been moved canonical partner repository. To enable it run the below
$ sudo add-apt-repository "deb lucid partner"

Run below to update packages from recently enabled repository
$ sudo apt-get update

To install Sun Java 6 JDK, run the following
$ sudo apt-get install sun-java6-jdk

Accept the terms of agreement when asked and verify the install as below
$ java -version


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s