How to Install the Java in Windows 11?

Madhav Prajapati
3 min readMar 30, 2023

--

How to Install the Java in Windows 11? Madhav Prajapati

In this article, I’m going to show you how to install Java on Windows 11,

One of the most popular programming languages for back-end development, Java is also a fairly popular choice for mobile and desktop development as well.

So, let’s jump right in🤞.

Check If Java is Already Installed

Before we move to the installation, it’s useful to see if JDK is already present in your system. So first Open Start Menu and type CMD. Then click on it on the search results Command Prompt.

command prompted

On the Command prompt, type the following command and hit Enter:

java - -version

If you see "java" is not recognized as an internal or external command, operable program or batch file response like on the image below, it means Java isn't installed on your Windows 11. However, if you see java version 16.0.1... or any other version a response, you already have Java.

Jump to the section below for the installation instructions.

How to Download Java?

Go to the Oracle Download page: https://www.oracle.com/java/technologies/javase-downloads.html

download x64 Installer

2. And download x64 Installer: https://download.oracle.com/java/17/latest/jdk-17_windows-x64_bin.exe . As soon as the download completes, launch the installation file and click on Yes.

Java .exe file Installed Madhav Prajapati

3. The JDK installation wizard will be launched. In the dialog box, click on Next

4. On the next screen, you’ll be asked for the location of your file. Note the destination folder because we need it when configuring environment variables. .and then Click on Next.

installation folder

5. The installation will start.

java installing in your local laptop

6. Click Close.

7. Now check whether java is installed or not

java -version
java installed successfully

Note:- If you are unable to see the expected output that shows above, then you need to set up your environmental variable in your Windows 11

8. Java is installed correctly. 👏 Now, you can use java and run your java programs in your windows 11.

Keep Learning and keep sharing Madhav Prajapati😊👍

Thank You🤩

--

--