Menu Close
Settings Close

Language and Page Formatting Options

Red Hat Training

A Red Hat training course is available for Red Hat JBoss Data Virtualization

Chapter 2. Installing Prerequisite Components

2.1. Install Open JDK on Red Hat Enterprise Linux

  1. Install the OpenJDK package:
    yum install java-[VERSION]-openjdk-devel
  2. To install it to alternatives, run these commands:
    sudo alternatives --install /usr/bin/java java usr/lib/jvm/java-[VERSION]-openjdk/bin/java 1000
    sudo alternatives --install /usr/bin/javac javac /usr/lib/jvm/java-[VERSION]-openjdk/bin/javac 1000
  3. As root, run the alternatives command for java:
    /usr/sbin/alternatives --config java
  4. Select /usr/lib/jvm/jre-[VERSION]-openjdk/bin/java.
  5. Then do the same for javac:
    /usr/sbin/alternatives --config javac
  6. Select /usr/lib/jvm/java-[VERSION]-openjdk/bin/javac.