How to install Java on Windows 11

In this article, we will see how to install Java on Windows 11. Java is one of most used programming language.

Following actions are going to perform in this article:

1. Check Java version Windows 11.
2. Install Java on Windows 11.
3. Create Environmental Variables for Java in Windows 11

How to check the Java version on Windows 11

1. Open command prompt and run the java –version to check whether Java is already installed or not on Windows.

How to install Java on Windows 11

If the above command returns ‘java’ is not recognized as an internal or external command, operable program or batch file. means Java is not installed.

Install Java on Windows 11

Installing Java on is so simple. Java installation on all windows operating system is same.

1. Go to Official Java download page

2. Then, select Windows and Click on link at X64 Installer(exe file) to download JDK(Which includes JRE).

Available latest version(At the time of writing this article) jdk 17
3. Once download completes, double click on downloaded jdk exe file.

jdk-17_windows-x64_bin.exe

4. Click on Next.

5. If we want to change default path, then click Change. Otherwise click on next.

6. Installation is completed. Click on close button.

Create environmental variable for Java on Windows 11

1. Click on windows button on your keyboard and then type “env”. Click on Edit the system environmental variables.

2. Click on Environmental Variables.

3. Now click New under System variables.

4. Enter the variable name as “JAVA_HOME” and in variable value provide the path of java jdk C:\Program Files\Java\jdk-17.0.1.

Click on ok(Thrives).

5. Return to the Environment Variables window, select Path in the System variables section, and click Edit.

6. Click New.
In the field that appears, type the following and press Enter.
%JAVA_HOME%\bin

Check the Java version on Windows 11

Now open fresh command prompt and type java –version as shown below.

So in this article, we have seen how to download, install Java on Windows 11. Then, we have seen how to set Environmental Variable for Java on Windows 11.

Leave a Reply

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