How To Install Java in Windows
How To Check Java is Installed or Not
Before installing the Java Development Kit, check if a Java version is already installed on Windows.
To check if you have Java installed or not on a Windows, search in the start bar for Java or type the following in Command Prompt:
If Java is installed, you will see the java version like this.
If you do not have Java installed on your laptop, you can download it for free at oracle.com.
How To Download Java Development Kit (JDK)
First Click on the below URL.
https://www.oracle.com/java/technologies/downloads/
After going to the download page select the windows section and click on the URL of x64 Installer. (Highlighted in yellow color)
How To Install Java in Windows
After downloading the installation file, proceed to install Java on your Windows system.
Double-click on the downloaded file to start the installation.
After running the installation file, the Installation Wizard welcome screen appears.
Click on the Next button to proceed to the next step. (Highlighted in yellow color)
Select the destination folder for the Java installation files or stay on the default path. Click on the Next button to proceed to the next step. (Highlighted in yellow color)
Wait for the wizard to complete the installation process until a successfully installed message appears. Click on the Close button to exit the wizard.
How To Set Environmental Variables In Java
We set Java environment variables to enable program compiling from any directory.
Open the Start menu and find Environmental Variables.
Click on Environmental Variables which is located in the System Properties window, under the Advanced tab. (Highlighted in yellow color)
Under the System Variables category, double-click on the path. (Highlighted in yellow color)
Click on the New button and enter the path to the Java bin directory. (Highlighted in yellow color)
Click on the OK button to save the changes and exit the variable editing window.