How to download and install prebuilt OpenJDK packages

Ubuntu logo

On Ubuntu 8.04 (Hardy Heron), do one of the following:

The openjdk-6-jre package contains just the Java Runtime Environment. If you want to develop Java programs then install the openjdk-6-jdk package.

For more information on how to install Java on Ubuntu, including on versions prior to 8.04, please see the Ubuntu Java Community page.

Fedora logo

On Fedora 9 the OpenJDK 6 runtime and development packages are installed by default during any large-media install, such as from the Fedora 9 DVD.

If installing from a live image, such as a live CD or USB flash drive, add the OpenJDK 6 runtime after the install:

On Fedora 8 the OpenJDK 7 runtime and development packages are installed by default during any large-media install, such as from the Fedora 8 DVD, under the name IcedTea. If installing from a live image then follow the above instructions but replace 1.6.0-openjdk with 1.7.0-icedtea.

Red Hat Enterprise Linux, CentOS, etc.

The OpenJDK 6 packages are also available in EPEL, a community-run project which makes Fedora packages available to users of Red Hat Enterprise Linux 5, CentOS 5, and other RHEL 5 derivatives.

First install the package that enables the EPEL repository:

$ su -c "rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm"

Then add the OpenJDK 6 runtime, or the development package and related packages if so desired, by following the instructions above for Fedora.

openSUSE logo

On openSUSE 11.1, do one of the following:

The java-1.6.0-openjdk package contains just the Java Runtime Environment. If you want to develop Java programs then install the java-1.6.0-openjdk-devel package.

Debian logo

On Debian GNU/Linux 5.0 (lenny) , do one of the following:

The openjdk-6-jre package contains just the Java Runtime Environment. If you want to develop Java programs then install the openjdk-6-jdk package.

Innovate on OpenSolaris

We are working on putting everything in place to start providing OpenJDK 7 builds in OpenSolaris package repositories beginning in July 2009.

If you want to have a head start, you can build OpenJDK 7 on OpenSolaris yourself now by following the instructions. In brief: