C.2.  Sun Java Development Kit on Red Hat Enterprise Linux 5


Use this procedure to install the Sun Microsystems Java Development Kit on Red Hat Enterprise Linux 5.

Important

The following commands must be run as root.

Procedure C.2.  Installing the Sun Microsystems JDK on Red Hat Enterprise Linux 5

  1. Subscribe to Supplementary Server channel.

    The Sun Microsystems Java Development Kit is available in the Supplementary Server channel.
  2. Install the package.

    To install the Sun Microsystems Java Development Kit package, input this command:
    yum install java-1.6.0-sun-devel
    Copy to Clipboard Toggle word wrap
  3. Set OpenJDK as the system's default Java Development Kit

    To ensure that the intended JDK is set as the system default, run the alternatives command as described in Section C.4, “ Setting the default JDK with the /usr/sbin/alternatives Utility ”
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat