How to Install Java in Windows 11

Did you know most of the applications run on java platform in windows operating system? So when the java applications get stuck or does not open properly, it could also mean that the java is not up-to-date on the system. The benefits of updating the java version are improvement in the performance, gives the stability and security to the java applications which run safely. In this article we will guide you how to update java on your windows 11 laptop.

Step 1 – Download and install Java

Step 1: Open any Browser

Then, Click on the below link to open the Java Oracle page.

Screenshot 2022 12 14 182212 Min

Step 2: Scroll down and Click Windows and then Download Java

Step 3: Once the installer file gets downloaded . Open the file by clicking on the down arrow icon and then, clicking Open from the list. Then, Click Yes on the UAC Prompt to proceed.

Step 4: In the Java Setup window . Click Install as shown below.

Step 7: Wait till the installation of Java is in progress.

Step 8: After the installation is completed, it will show “You have successfully installed java” message.

Step 2 – Add Environment variables

Step 1  – Copy the paths

1 – Go to C:\Program Files\Java from address bar of file explorer

2 – Now, Go inside your jdk folder (having a version number in its name)


Screenshot 2022 12 14 183548 Min

3 – Copy the path from address bar. Remember this as First Path for the moment.

Screenshot 2022 12 14 183842 Min

3 – Now, Click on bin folder

Screenshot 2022 12 14 183742 Min


4 – Now, copy the path from the address bar. Remember this as second path at this moment.

Screenshot 2022 12 14 184103 Min

Step 2  – Edit system variables with these paths

1 – Search SYSDM.CPL in windows search and click on it

Sysdm Cpl Min

2 – Now, Click on Advanced Tab

3 – Now, click on Environment variables

Screenshot 2022 12 14 182800 Min

4 – Now, Under User Variables Click on New

Screenshot 2022 12 14 184651 Min


5 – Now, in Variables name section , type JAVA_HOME and in Variable value section , just enter First path which is C:\Program Files\Java\jdk-19 in my case, which you got when you just entered your jdk folder. Click OK

Screenshot 2022 12 14 184749 Min


6 –  Under System Variables , Double click on Path

Screenshot 2022 12 14 183034 Min


7 – Now, Click on New and here in this field , enter second path , which we got when we were inside bin folder. Click OK

Screenshot 2022 12 14 184448 Min



That’s all guys.

Hope this article was informative and helpful.

Please leave us comments below if any doubts.

Thank you for reading!