Ubuntu 10.04 & Java: Setup Sun JDK

Since Ubuntu 10.04 the OpenJDK is the recommended default JDK and the Sun JDK has been removed from the multiverse repository. From the release notes:

Sun Java moved to the Partner repository

For Ubuntu 10.04 LTS, the sun-java6 packages have been dropped from the Multiverse section of the Ubuntu archive. It is recommended that you use openjdk-6 instead.

If you cannot or do not want to use the OpenJDK implementation follow the steps below to install the sun-java6-jdk package:

# sudo aptitude install python-software-properties
# sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
# sudo aptitude update
# sudo aptitude install sun-java6-jdk

After the installation you can run

# sudo update-alternatives --config java

to choose the Java implementation the system should use if you have more than one alternative installed.

Related posts:

  1. Ubuntu 9.10: Setup APC for PHP5 and Apache2
  2. Ubuntu 9.10 & VDR: Setup EPGSearch plugin
  3. Windows: Android SDK installer does not find Java SE Development Kit (JDK)
  4. Ubuntu 10.04: Setup APC for PHP 5.3 and Apache2
  5. Setup Dropbox on headless Ubuntu 9.10 server

Leave a comment

Your email address will not be published. Required fields are marked *

*

*