Windows

To install Java Development Kit (JDK) on Windows, download the installer (x64 Installer) free of charge from the following address:

https://www.oracle.com/java/technologies/downloads/

When the download is complete, run the corresponding installer and complete the installation process.


Linux (Ubuntu and Debian)

Before installing Java Development Kit (JDK) on Linux, you should update the system repositories. This ensures that all of your systems software is up-to-date, reducing the likelihood of compatibility issues. Open a terminal and run the following commands.

sudo apt update
sudo apt upgrade -y

Next, run the following command to install Java Development Kit (JDK).

sudo apt install default-jdk