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.
Find the Windows installer (an .EXE file) on the page and download it.

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.

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

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.

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


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.

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:
%JAVA_HOME%\bin
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?
Leave a Reply