Questo contenuto non è disponibile nella lingua selezionata.

B.2. OpenJDK on Red Hat Enterprise Linux 5 and 6


Use this procedure to install OpenJDK on Red Hat Enterprise Linux 5 or Red Hat Enterprise Linux 6.

Important

The following commands must be run as root.

Procedure B.2. Installing OpenJDK on Red Hat Enterprise Linux 5 and 6

  1. Subscribe to the base channel.

    The OpenJDK is available in Red Hat Enterprise Linux's base channel.
  2. Install the OpenJDK package.

    Issue one of the following commands to install the respective OpenJDK package:
    # yum install java-1.6.0-openjdk-devel
    # yum install java-1.7.0-openjdk-devel
  3. Set OpenJDK as the system's default Java Development Kit.

    You can use the alternatives tools to select the default JDK or verify the setting (refer to Section B.6, “Setting the default JDK with the alternatives Utility”).
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2026 Red Hat
Torna in cima