Windows

How to Install Oracle Java JDK on Windows 11

Richard
Written by
Richard
Dec 16, 2021 Updated Apr 15, 2026 2 min read
How to Install Oracle Java JDK on Windows 11

This guide helps you install Oracle Java JDK on Windows 11.

Why do this? You need the Java Development Kit (JDK) to create, test, and run Java programs on your computer. It provides the essential tools for developers.

What happens when done? Your computer will recognize Java commands, allowing you to run and build Java software projects.

Downloading and Installing Java

First, you need to download the installer. Use the link below to get started.

Oracle Java Downloads

Find the Windows installer (an .EXE file) on the page and download it.

Oracle Java JDK installer download page on the official website

Once the download finishes, open your Downloads folder and double-click the Java installer file. Note: This step requires administrator privileges. Follow the prompts on your screen and click Next to continue.

Java installation wizard prompt on Windows 11 showing Next button

Stick with the default settings. Java will install to C:\Program Files\Java\jdk-version-number. When the installation finishes, click Close.

Java installation complete window confirming successful JDK setup on Windows 11

Adding Java to your System Path

Now that Java is installed, you need to tell Windows where it lives. This helps your computer find Java tools automatically.

To do this, you must edit your environment variables. Open your system settings and search for “Environment Variables.” Note: This step requires administrator privileges.

File explorer showing the installed Java JDK folder path on Windows

Look under the “System variables” section and click the New button.

Windows 11 system properties window for editing environment variables

New system variable dialog box for setting JAVA_HOME on Windows

Enter JAVA_HOME as the Variable name. For the Variable value, enter the path where you installed Java, such as C:\Program Files\Java\jdk-17. Click OK.

Configuring the JAVA_HOME variable value with the Java installation path

Next, find the variable named “Path” in the list. Click Edit. Check if a path for Java is already there. If not, click New and add this line:

💻Code
%JAVA_HOME%\bin
Editing the system Path variable to include Java JDK tools

Verifying the Installation

Open your command prompt and run these commands to ensure everything is working:

java -version

javac -version

If successful, you will see text confirming the Java version installed on your system.

Summary

Installing Java JDK involves downloading the installer, running it with administrator rights, and updating your system environment variables. By setting the JAVA_HOME path, you ensure that Windows can correctly locate and run Java tools. You can verify your success by checking the version in the command prompt. You are now ready to start coding.

Learn more about system paths here: How to add or edit Windows PATH environment variables in Windows 11. For more details on system settings, visit Windows PATH environment variables.

Was this guide helpful?

Tags: #Windows 11
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, the owner and lead writer at Geek Rewind, is a tech enthusiast passionate about simplifying complex IT topics. His years of hands-on experience in system administration and enterprise IT operations have honed his ability to provide practical insights and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

2460 articles → Twitter

📚 Related Tutorials

How to Find Your Downloads Folder in Windows 11
Windows How to Find Your Downloads Folder in Windows 11
How to Disable Command Prompt in Windows 11
Windows How to Disable Command Prompt in Windows 11
How to Set Windows Terminal to Open with Command Prompt on Windows 11
Windows How to Set Windows Terminal to Open with Command Prompt on Windows 11
How to Run Apps as Administrator in Windows 11
Windows How to Run Apps as Administrator in Windows 11

Leave a Reply

Your email address will not be published. Required fields are marked *