"A Step-by-Step Guide on How to Install JDK (Java Development Kit)"

Gerald Jun 16, 2026

Installing JDK: A Step-by-Step Guide

How to download and install Java JDK on Windows 11/10
How to download and install Java JDK on Windows 11/10

Java Development Kit (JDK) is an essential tool for Java developers, allowing them to create, compile, and run Java applications. In this article, we'll walk you through the process of installing JDK on your computer, making sure you have a solid foundation for your Java development journey.

A Guide to Installing JDK on Your Mac - DeviceMAG
A Guide to Installing JDK on Your Mac - DeviceMAG

System Requirements

Before we dive into the installation process, make sure your computer meets the system requirements for JDK. The minimum requirements are:

How to install Maven, Java JDK 9, IntelliJ using Chocolatey on Windows 10
How to install Maven, Java JDK 9, IntelliJ using Chocolatey on Windows 10
  • Operating System: Windows, macOS, or Linux
  • Processor: 32-bit or 64-bit
  • RAM: 2 GB or more
  • Hard Disk Space: 1.5 GB or more

Downloading JDK

How to install Java JDK on Windows 8
How to install Java JDK on Windows 8

The first step in installing JDK is to download the latest version from the official Oracle website. Follow these steps:

  1. Visit the Oracle Java SE Downloads page.
  2. Select the correct platform (Windows, macOS, or Linux) and choose the JDK version you want to download.
  3. Click on the "Accept License Agreement" checkbox and click on the download link for the JDK bundle.
  4. Save the downloaded file to a location on your computer, such as the desktop.

Installing JDK on Windows

How to install #Java #JDK 9 on Windows 10 | #Studio #Tech #Viral
How to install #Java #JDK 9 on Windows 10 | #Studio #Tech #Viral

Follow these steps to install JDK on Windows:

To install JDK on Windows, you need to run the installer file you downloaded earlier. Double-click on the file to launch the installer.

  • Click on the "Next" button to continue with the installation.
  • Select the destination folder where you want to install JDK and click on the "Next" button.
  • Choose the components you want to install, such as Development Tools, and click on the "Next" button.
  • Click on the "Install" button to start the installation process.
How to install Java JDK 10 on Ubuntu 18.04 LTS (Debian Linux)
How to install Java JDK 10 on Ubuntu 18.04 LTS (Debian Linux)

Installing JDK on macOS

Follow these steps to install JDK on macOS:

Install JDK
Install JDK
1  install jdk on windows تنصيب الجافا على الوندوز
1 install jdk on windows تنصيب الجافا على الوندوز
How To Install Java Standard Edition (SE) Development Kit (JDK) In Windows 10
How To Install Java Standard Edition (SE) Development Kit (JDK) In Windows 10
a black background with red text that reads lab setting jdk download and install
a black background with red text that reads lab setting jdk download and install
Android Application Development Tutorial   1   Download and Install the Java JDK 2015
Android Application Development Tutorial 1 Download and Install the Java JDK 2015
How to Install Java JDK 13 and JRE 8 | Java Tutorial In Hindi | Excellence Technology
How to Install Java JDK 13 and JRE 8 | Java Tutorial In Hindi | Excellence Technology
How to Install Java JDK 20.0.1 on Windows Server 2022 !! Same Steps Follow in Windows 10 & 11 !!
How to Install Java JDK 20.0.1 on Windows Server 2022 !! Same Steps Follow in Windows 10 & 11 !!
Djamware – Modern Programming Tutorials for Web & Mobile Developers
Djamware – Modern Programming Tutorials for Web & Mobile Developers
How To Setup JDK 15 Environment In Eclipse ?
How To Setup JDK 15 Environment In Eclipse ?
How to Install Java on Linux (JRE or JDK)
How to Install Java on Linux (JRE or JDK)
How To Install Java In Termux Without Root @rajbhx
How To Install Java In Termux Without Root @rajbhx
How to Install the Java JDK in Windows 11
How to Install the Java JDK in Windows 11
How to Install Java JRE,JDK on Ubuntu 16.04 byDA
How to Install Java JRE,JDK on Ubuntu 16.04 byDA
How can I install Sun/Oracle's proprietary Java JDK or JRE?
How can I install Sun/Oracle's proprietary Java JDK or JRE?
Java Inspires   Simple way of installing Java JDK in Ubuntu(java 11)
Java Inspires Simple way of installing Java JDK in Ubuntu(java 11)
HOW TO INSTALL JAVA  JRE JDK IN UBUNTU
HOW TO INSTALL JAVA JRE JDK IN UBUNTU
How to Seamlessly Check if Java JDK is Installed on Your Windows 11 (64-Bit) PC [2024]
How to Seamlessly Check if Java JDK is Installed on Your Windows 11 (64-Bit) PC [2024]
How to Install Java JDK 26 on Ubuntu Linux(2026)
How to Install Java JDK 26 on Ubuntu Linux(2026)
Java Development Kit (JDK) Installation Video - Windows..#javasdkinstallationwindows
Java Development Kit (JDK) Installation Video - Windows..#javasdkinstallationwindows
How to Download and Install Java SE JDK 8 on Windows 10 | Install Oracle Java 8 Windows 10
How to Download and Install Java SE JDK 8 on Windows 10 | Install Oracle Java 8 Windows 10

To install JDK on macOS, you need to run the installer file you downloaded earlier. Double-click on the file to launch the installer.

  • Click on the "Continue" button to continue with the installation.
  • Enter your administrator password to authenticate the installation.
  • Click on the "Install" button to start the installation process.

Installing JDK on Linux

Follow these steps to install JDK on Linux:

To install JDK on Linux, you need to run the following commands in your terminal:

  
    sudo apt-get update
    sudo apt-get install default-jdk
  

This will install the JDK and all its dependencies on your Linux system.

Setting Environment Variables

After installing JDK, you need to set the environment variables to let your system know where the JDK is installed. Follow these steps:

  1. Open a terminal or command prompt.
  2. Run the following command to check if the JDK is installed correctly:
  3. java -version
  4. If the JDK is installed correctly, you should see the version number displayed in the terminal.

Verifying JDK Installation

Once you've installed JDK, verify that it's working correctly by following these steps:

  1. Open a terminal or command prompt.
  2. Run the following command to check the JDK version:
  3. java -version
  4. If the JDK is installed correctly, you should see the version number displayed in the terminal.

By following these steps, you should now have JDK installed on your computer and be ready to start developing Java applications.