Download and Install Java Using Open JDK -
Install Java from “https://www.oracle.com/in/java/technologies/downloads/”
Download the Java Zip file as per your operating system, and click on .zip file for Windows operating system.
Click on the downloaded zip file to extract the folder
Set the System Variables:
- Enter Windows Control Panel- System - Advanced System Settings.
- Click Advanced and then Environment Variables.
- Add the bin folder location (within the JDK folder) to the PATH variable in System Variables
Set JAVA_HOME:
Update PATH:
Edit the PATH variable by adding %JAVA_HOME%\bin.
Open the command prompt and type java -version to check Java is successfully installed.