Installing and Configuring Java Development Kit

Installing Oracle Java from Oracle

go to the link

https://www.oracle.com/java/technologies/javase-downloads.html and download the installer.

Install the jdk from openjdk

open the url, : Don’t google http://jdk.java.net/

Dowonload any "Ready for use" version. click on version number then download the “.zip” file for windows. Extract downloaded zip file into C:\Program Files\.

adding System variables

Now copy the path of directory where you have extracted the zip file. in my case it’s C:\Program Files\openjdk-15. Create new system variable with the name of JAVA_HOME and add the copied path into value which in my case is C:\Program Files\openjdk-15.

Also add the path to the bin directory into the system path variable. C:\Program Files\Java\jdk-15.0.2\bin

Also add the path to bin directory of jdk into system Path variable.

Check version java --version

shortcuts

press windows key + i to open settings.

Previous