How to Install Java JDK on Windows 10 Step by Step Guide

Robert Jul 13, 2026

Are you a Windows 10 user eager to harness the power of Java for your next project? Then, it's crucial to know how to install the Java Development Kit (JDK) on your system. This comprehensive guide will walk you through the process in an engaging and user-friendly manner.

Djamware – Modern Programming Tutorials for Web & Mobile Developers
Djamware – Modern Programming Tutorials for Web & Mobile Developers

Before we dive in, it's essential to understand that the JDK is the core of all Java software development. It's responsible for compiling, debugging, and running Java applications, making it a fundamental tool for any aspiring Java developer.

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

Understanding Different Java Versions

First, let's discuss the different versions of Java available. Currently, Oracle offers both the Java Development Kit (JDK) and the Java Runtime Environment (JRE). The JDK is the full-featured version that includes the JRE plus the development tools necessary to compile and run Java programs. In contrast, the JRE has the necessary components to run Java applications but doesn't include the development tools offered in the JDK.

How to Install Java JDK 21 on Windows 10 |Java Tutorial For Beginners | Learn Java
How to Install Java JDK 21 on Windows 10 |Java Tutorial For Beginners | Learn Java

For this guide, we'll focus on installing the JDK, as it's the ideal choice for anyone planning to develop Java applications on their Windows 10 system.

Checking Your Current Java Version

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 !!

Before you begin, it's crucial to check if you already have Java installed. Open your Command Prompt and type the following command:

java -version

If Java is installed and functioning correctly, you'll see version information. If it's not installed or if there's an issue, you'll receive an error message. In that case, you can proceed to the next step; if not, you might need to reinstall or repair your existing Java installation.

Downloading the JDK

How to Install Java JDK 19 on Windows 10 or 11
How to Install Java JDK 19 on Windows 10 or 11

To download the JDK, visit the official Oracle website and navigate to the Java SE Development Kit download page. Ensure you select the Windows x64 MSI Installer if you're using a 64-bit system or Windows x86 MSI Installer for a 32-bit system.

Download the installer and keep it in a location you can easily access, such as your desktop or a dedicated 'Downloads' folder.

Installing the Java Development Kit

How to Install Java 18 on Windows 10/11, JDK installation | How to Install Java JDK 18 on Windows 11
How to Install Java 18 on Windows 10/11, JDK installation | How to Install Java JDK 18 on Windows 11

Now that you have the JDK installer, let's proceed with the actual installation. Remember to run the installer with admin privileges to ensure smooth installation.

Once the installer starts, accept the license agreement and select the installation path. By default, the JDK is installed in the "Program Files" directory. You can leave it as-is or change it to a more convenient location if you prefer.

How install java jdk windows | java installation in windows 10 | install java
How install java jdk windows | java installation in windows 10 | install java
Quick Guide to Install Java JDK 11 in Windows 10
Quick Guide to Install Java JDK 11 in Windows 10
Post by @im-a-developer · 1 image
Post by @im-a-developer · 1 image
How to install the Netbeans IDE and Java JDK on Windows 8 / 8.1 or Windows 10
How to install the Netbeans IDE and Java JDK on Windows 8 / 8.1 or Windows 10
How to install Java JDK on Windows 8
How to install Java JDK on Windows 8
Java Tutorial For Beginners | Java Installation in Windows 10 | How To Install Java JDK | SimpliCode
Java Tutorial For Beginners | Java Installation in Windows 10 | How To Install Java JDK | SimpliCode
Como Baixar e Instalar o Java JDK 21 no Windows 10? Aprenda na Prática
Como Baixar e Instalar o Java JDK 21 no Windows 10? Aprenda na Prática
IPGRAY : Java - How to download and install JDK 9 in windows 10
IPGRAY : Java - How to download and install JDK 9 in windows 10
How to install Java JDK 12 on Windows 10 1809
How to install Java JDK 12 on Windows 10 1809
[JSP-2]-How to install Java JDK and Eclipse IDE on Windows 10 -2020
[JSP-2]-How to install Java JDK and Eclipse IDE on Windows 10 -2020
✂️ How to install windows 10
✂️ How to install windows 10
How to Set JAVA_HOME in Windows 10
How to Set JAVA_HOME in Windows 10
How to Download and Install Java JDK and Eclipse on Windows 10
How to Download and Install Java JDK and Eclipse on Windows 10
How to design a simple dashboard UI using Swing and Java -Netbeans
How to design a simple dashboard UI using Swing and Java -Netbeans
Java Cheatsheet
Java Cheatsheet
Top 10 Applications of Java in Real World
Top 10 Applications of Java in Real World
Understanding JDK, JRE, and JVM in Java

If you are starting with Java development, it’s important to understand these three terms:

JDK (Java Development Kit) – Includes JRE, compiler, debugger, and other development tools.
JRE (Java Runtime Environment) – Provides JVM and class libraries required to run applications.
JVM (Java Virtual Machine) – Executes Java bytecode and makes Java platform-independent.

In simple terms:

Developers use JDK to build programs.

Applications run on JRE.

Exe... Class Library, Java Programming, Backend Developer, Java, Programming, Coding
Understanding JDK, JRE, and JVM in Java If you are starting with Java development, it’s important to understand these three terms: JDK (Java Development Kit) – Includes JRE, compiler, debugger, and other development tools. JRE (Java Runtime Environment) – Provides JVM and class libraries required to run applications. JVM (Java Virtual Machine) – Executes Java bytecode and makes Java platform-independent. In simple terms: Developers use JDK to build programs. Applications run on JRE. Exe... Class Library, Java Programming, Backend Developer, Java, Programming, Coding
Java Programming Tutorial - 1 - Installing the JDK on Mac
Java Programming Tutorial - 1 - Installing the JDK on Mac
60 Java projects ideas💡
60 Java projects ideas💡

Setting the JAVA_HOME Environment Variable

After the installation is complete, it's essential to set the JAVA_HOME environment variable. This variable points to the directory where Java is installed and is crucial for various tools and build systems to function correctly.

Press Windows + Pause/Break key to open System Properties, then select 'Environment Variables...'. Under 'System variables', click 'New...', name the variable 'JAVA_HOME', and set its value to the JDK installation path (e.g., C:\Program Files\Java\jdk1.8.0_261).

To verify the correct setting, open a new Command Prompt window and type:

echo %JAVA_HOME%

The command should display the path you specified.

Setting the PATH Environment Variable

Now, let's set the PATH environment variable so you can run Java and its tools without specifying the full path. In the Environment Variables window, under 'System variables', locate the 'Path' entry and select it. Click 'Edit...'.

In the Edit Environment Variable window, click 'New' and add the new path to the bin directory of your JDK installation (e.g., C:\Program Files\Java\jdk1.8.0_261\bin). Click 'OK' to save the changes.

To verify that you've set the PATH correctly, open a new Command Prompt window and type:

java -version javac -version

Both commands should display the installed Java version.

Testing Your JDK Installation

To ensure your JDK installation is successful and functional, let's create a simple Java application and run it.

Create a new text file, and using your favorite text editor, add the following content:

public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); } }

Save the file with a .java extension, such as HelloWorld.java. Open Command Prompt, navigate to the file's location, and compile it using the following command:

javac HelloWorld.java

Once the file is compiled successfully, run the application with this command:

java HelloWorld

If everything is configured correctly, you should see the message "Hello, World!" printed on the screen. Congratulations! You've successfully installed and configured the JDK on your Windows 10 system.

Now that you've mastered the art of installing the JDK on Windows 10, explore the vast possibilities of Java development and happy coding!