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.
https://www.oracle.com/in/java/technologies/downloads/
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)
3 – Copy the path from address bar. Remember this as First Path for the moment.
3 – Now, Click on bin folder
4 – Now, copy the path from the address bar. Remember this as second path at this moment.
Step 2 – Edit system variables with these paths
1 – Search SYSDM.CPL in windows search and click on it
2 – Now, Click on Advanced Tab
3 – Now, click on Environment variables
4 – Now, Under User Variables Click on New
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
6 – Under System Variables , Double click on Path
7 – Now, Click on New and here in this field , enter second path , which we got when we were inside bin folder. Click OK
That’s all guys.
Hope this article was informative and helpful.
Please leave us comments below if any doubts.
Thank you for reading!