common:procedures:install_java
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| common:procedures:install_java [2026/02/11 18:39] – redhat jtbeduchaud | common:procedures:install_java [2026/02/20 17:43] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Install JAVA ====== | ||
| + | It is recommended to install the latest JAVA openjdk release available | ||
| + | | ||
| + | **Caution: | ||
| + | | ||
| + | ===== Using Redpeaks Java installer ===== | ||
| + | |||
| + | * Please if you are on RHEL/Red Hat, upgrade Java using dnf '' | ||
| + | * Otherwise, use redpeaks java installer, the script must be able to reach **https:// | ||
| + | * Look for '' | ||
| + | * Execute the script, it will download and install latest java open JDK runtime. | ||
| + | * Run '' | ||
| + | |||
| + | ===== Manual install ===== | ||
| + | **Note:** In the below example, jdk install folder is in ''/ | ||
| + | |||
| + | wget https:// | ||
| + | tar zxvf openjdk-20.0.1_linux-x64_bin.tar.gz -C / | ||
| + | alternatives --install | ||
| + | alternatives --config java -> select new version | ||
| + | |||
| + | If a JAVA version is already installed on your system before the installation, | ||
| + | |||
| + | 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/ | ||
| + | |||
| + | * Use the system package manager (dnf/yum) to **install** or **upgrade** the latest supported OpenJDK version | ||
| + | * Example on CentOS/ | ||
| + | |||
| + | 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:// | ||
| + | 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
