• Senior Software Engineer • Focused on Customers and Craftsmanship • Leader of the Phoenix Software Engineering Reading Group Mike is a DZone MVB and is not an employee of DZone and has posted 20 posts at DZone. You can read more from them at their website. View Full User Profile

Sun Java 6 on Ubuntu 10.04 10.10 and later

07.23.2010
| 100320 views |
  • submit to reddit

Post updated 2011 Jan 19: Given the opportunity to install 10.10, I have added different instructions for Ubuntu 10.10 (Maverick Meerkat).

 

Much to my surprise, but probably not those of the Open Source Ruling Class, Sun's Java 6 has been removed from the Ubuntu Multiverse. Apparently the Ubuntu folks have started putting some weight behind their recommendations for switching to the "OpenJDK." Fortunately, the official, "proprietary" Java is still available through another Ubuntu repository.

Ubuntu 10.10

To install Sun's Java 6 JDK on Ubuntu 10.10, add the Sun Java6 Community PPA and install:
add-apt-repository ppa:sun-java-community-team/sun-java6
apt-get update
apt-get install sun-java6-jdk
update-java-alternatives -s java-6-sun

Ubuntu 10.04

To make Sun's Java 6 JDK available on Ubuntu 10.04 add the new repository like so:
add-apt-repository "deb http://archive.canonical.com/ lucid partner"
aptitude update
aptitude install sun-java6-jdk
update-java-alternatives -s java-6-sun

From http://codeaweso.me/2010/07/sun-java-6-on-ubuntu-10-04-10-10-and-later/

Published at DZone with permission of Mike Christianson, author and DZone MVB.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Tags:

Comments

Alessandro Santini replied on Fri, 2010/07/23 - 5:06am

Wow! These are incredible news! An Ubuntu package has been moved from one repository to another, and this made the news!

Hauke Ingmar Schmidt replied on Fri, 2010/07/23 - 6:43am

It is indeed newsworthy as OpenJDK adds additional problems to the Java configuration. Easy bugfixing by just installing Oracles Java is a nice hint because at least I didn't expect a silent change of the Java implementation after the distribution upgrade.

Lukas Zapletal replied on Fri, 2010/07/23 - 6:59am in response to: Alessandro Santini

Better than your "comment" dude...

Martin Wildam replied on Tue, 2010/08/03 - 10:03am

I am on 10.04 and I have it in the lucid/main repository.

County Line Nissan replied on Mon, 2011/08/01 - 12:07pm

Hopefully it doesn’t mean less visibility of issues installing the SunVM on Ubuntu. -County Line Nissan

Thomas Kern replied on Thu, 2012/09/06 - 10:58am

There are definitely differences between the two. OpenJDK seems susceptible to an NIO bug that causes the CPU to hit 100%. Seems a shame that the Ubuntu guys are hiding the sun vm in the partner repo. Hopefully it means that OpenJDK bugs get more attention. Hopefully it doesn’t mean less visibility of issues installing the SunVM on Ubuntu.

http://www.java-tips.org 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.