Questo contenuto non è disponibile nella lingua selezionata.
Chapter 2. Installing Prerequisite Components
2.1. Install Open JDK on Red Hat Enterprise Linux
- Install the OpenJDK package:
yum install java-[VERSION]-openjdk-devel
- 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
- As root, run the alternatives command for
java
:/usr/sbin/alternatives --config java
- Select
/usr/lib/jvm/jre-[VERSION]-openjdk/bin/java
. - Then do the same for
javac
:/usr/sbin/alternatives --config javac
- Select
/usr/lib/jvm/java-[VERSION]-openjdk/bin/javac
.