
You can also install multiple versions of Java.

If you want to install JRE (not JDK), just remove “-devel” from the command. To install it, run the following command: yum install java-17-openjdk-devel Run the following command: yum update Step 2: Install Java 17 (latest LTS version)Īs of writing, the latest LTS release of Java is version 17. Or if you need a managed server and you want the hosting provider to install Java for you, then get one from SolaDrive.Īs always, the first step is to update your system. Root access (log in as the root user before doing the first step).These instructions were written and tested for AlmaLinux, but they should work on CentOS and Fedora too, any versions. If you don’t know the differences between any of these, you can either google them or don’t worry about it – this tutorial will set up the environment that will most likely work for you. Most people prefer OpenJDK, so that’s what we’ll use. There are also two different implementations – OpenJDK (FOSS), and Oracle Java.
#Install java 8 openjdk how to
The JDK also includes JRE, so this tutorial will show you how to install JDK on Alma Linux.

Java also has different packages to choose from, Java Runtime Environment (JRE) and the Java Development Kit (JDK). Java has different editions to choose from, so we’ll include instructions for the most popular and widely used one – the Standard Edition. In this tutorial, we’ll show you how to install and configure Java on AlmaLinux via the CLI. It’s a great server distro and a lot of people switched to Alma after the whole CentOS Stream announcement. AlmaLinux is a FOSS alternative to the old CentOS.
