Questo contenuto non è disponibile nella lingua selezionata.
Appendix B. Installing a Java Development Kit
If installing on Red Hat Enterprise Linux, it's recommended to obtain it from the Red Hat Network (RHN). If you have difficulties subscribing to the correct software channels in Red Hat Network, refer to the Red Hat Network Help Desk at https://rhn.redhat.com/rhn/help/ or contact Red Hat Support via http://access.redhat.com directly for assistance.
B.1. Oracle JDK on Red Hat Enterprise Linux 5 and 6 Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
Use this procedure to install the Oracle Java Development Kit on Red Hat Enterprise Linux 5 or Red Hat Enterprise Linux 6.
Important
The following commands must be run as
root.
Procedure B.1. Installing Oracle JDK on Red Hat Enterprise Linux 5 and 6
Subscribe to the
Supplementary Serverchannel.The Oracle Java Development Kit is available in theSupplementary Serverchannel.Install the Oracle JDK package.
Issue one of the following commands to install the respective Oracle Java Development Kit package:# yum install java-1.6.0-sun-devel# yum install java-1.7.0-oracle-develSet Oracle JDK as the system's default Java Development Kit.
You can use thealternativestools to select the default JDK as well as to verify the setting (refer to Section B.6, “Setting the default JDK with the alternatives Utility”).