

$ sudo pacman -S jdk-openjdkĪs shown before, press Y when prompted and hit ENTER to continue with the installation process. The first option is usually the latest version, so to install the latest JDK, run the command. Once again, let’s search for the versions of JDK that are available for download. With JRE installed, we can proceed to install JDK on our Arch Linux system. Press Y and hit ENTER to proceed with the installation of JRE and other dependencies. To install the latest version of JRE, run the command. To install JRE ( Java Runtime Environment), a first search which versions are available for download using the command. Let’s now proceed and install both JRE and JDK which both constitute JAVA.

There are other alternatives to Oracle Java, such as OpenJDK, which is easier to install. Because it’s a licensed product, you don’t get it in the Ubuntu official repo.

Installing Java 17 is not that straightforward without a PPA. Because the PPA that is used in this guide is periodically updated to meet the needs for past and future releases. Java 17 is officially supported until 2029.Īlthough this guide tested for ongoing supported Ubuntu and Linux Mint releases, however, should be applicable for other Debian-based distributions in the coming days. This release gets support for 8-years, which includes security and performance updates and, of course, bug fixes. A quick guide on how to install the latest Java 17 in Ubuntu 22.04, 22.10 and Linux Mint 21.x.Ī while back, Oracle announced the release of Java 17, the LTS version of this widely used programming language.
