Action disabled: recent
common:procedures:install_java
Table of Contents
Install JAVA
It is recommended to install the latest JAVA openjdk release available
Caution: Software releases produced after October 2025 will require running openJDK 21 or above.
Using Redpeaks Java installer
- Please if you are on RHEL/Red Hat, upgrade Java using dnf
sudo dnf install -y java-21-openjdk(internet access required) - Otherwise, use redpeaks java installer, the script must be able to reach https://download.java.net
- Look for
install_java.shfile in Redpeaks install package (tar archive) - Execute the script, it will download and install latest java open JDK runtime.
- Run
java -versionto confirm you are running the latest version.
Manual install
Note: In the below example, jdk install folder is in /usr/lib/jvm/
wget https://download.java.net/java/GA/jdk25.0.1/2fbf10d8c78e40bd87641c434705079d/8/GPL/openjdk-25.0.1_linux-x64_bin.tar.gz tar zxvf openjdk-20.0.1_linux-x64_bin.tar.gz -C /usr/lib/jvm/ alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-20.0.1/bin/java 99 alternatives --config java -> select new version
If a JAVA version is already installed on your system before the installation, use alternatives command to change the java version used by your system.
alternatives --config java # In case of upgrade: Switches the links to point to the new version # logout and login again to have the environment variables defined.
Linux CentOS/RedHat
- Use the system package manager (dnf/yum) to install or upgrade the latest supported OpenJDK version
- Example on CentOS/RHEL:
sudo dnf install -y java-21-openjdk-headless sudo alternatives --config java java -version
- Refer to the online documentation specific to your Linux distribution.
Linux Open SUSE Leap 15.2
Run the following commands to install JAVA openjdk 15
zypper up zypper ar http://download.opensuse.org/repositories/Java:/Factory/openSUSE_Leap_15.2/ java zypper mr -p 70 java zypper refresh zypper in java-15-openjdk [To try first in case it is already available] java --version
common/procedures/install_java.txt · Last modified: by 127.0.0.1
