

Libgail-common libgail18 libgdk-pixbuf-2.0-0 libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgif7 libgl1 libgl1-amber-dri libgl1-mesa-dri libglapi-mesa libglvnd0 Libcairo-gobject2 libcairo2 libcups2 libdatrie1 libdconf1 libdeflate0 libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libfontconfig1 libfontenc1 Libatk-bridge2.0-0 libatk-wrapper-java libatk-wrapper-java-jni libatk1.0-0 libatk1.0-data libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3 The following additional packages will be installed:Īdwaita-icon-theme alsa-topology-conf alsa-ucm-conf at-spi2-core ca-certificates-java dconf-gsettings-backend dconf-service fontconfig fontconfig-configįonts-dejavu-core fonts-dejavu-extra gsettings-desktop-schemas gtk-update-icon-cache hicolor-icon-theme humanity-icon-theme java-common libasound2 libasound2-data $ sudo apt-get update & apt-get -y install openjdk-17-jdk

Sudo apt-get update & apt-get -y install openjdk-17-jdk To install Java on Ubuntu, use the apt-get command: In this tutorial, you will install OpenJDK, use it, and learn how to switch between different installed versions.Īt the time of writing this tutorial, the latest LTS release of Java was 17.x and the last GA release was 18.x. This is the open source version but there are many licensed versions provided by a variety of vendors (Oracle, Microsoft, AWS, …). If you need help setting up a Public Cloud instance with Ubuntu 22.04, follow the guide to use an OVHcloud Compute Instance. You should also have basic knowledge of the command line.

This tutorial assumes that you have a VPS, bare metal server, or as in our case, an OVHcloud Compute Instance running Ubuntu 22.04. In this tutorial you will learn how to install the Java Development Kit (JDK) on a Ubuntu 22.04 Linux distribution. To learn more about the full capabilities of the Java language refer to the official documentation. Its wide adoption over the past years makes it an unavoidable language in the development world. Java is one of the most famous programming languages in the world.
