Install Java JDK 1.8 or latest version on your machine. To set up Java, follow the steps listed below.
Click on “Next”. A new pop-up window will open.
On clicking the “Next” button you’ll be directed to a new window.
Click on “Next”. A new window opens up. You’ll
have to wait till the process gets complete.
Once the process gets over, the Java Installation process will be completed. Click on the close button.
Once Java has been installed on your machine successfully, you need to set the Java Environment Variable path on that machine by following below steps:
· Select Control Panel and then System.
·
Click Advanced system setting
Navigate to the advanced tab and click on Environment Variables.
· Under System Variables section click on New.
· Enter JAVA_HOME as Variable Name and the Path of installed JDK as Variable Value.
·
Click on OK.
You’ll also have to add the “Java Path” under “System Variable > Path” by clicking on the “Edit” option. Please refer the image below.
Now, click on “New” and copy the JDK path here as well. As shown in the below image.
Now, do the same process for JRE.
· Under System Variables section click on New.
· Enter JRE_HOME as Variable Name and the Path of installed JRE as Variable Value.
·
Click on OK.
Also, put the JRE path under “System Variable > Path” by clicking on the “Edit” option. The same way you did for JAVA.
You can easily check the version of Java installed on your machine. Follow the below given instructions:
· Open the command prompt (Press Windows with R & type CMD).
· Type Java -version and press enter.
·
Java Version installed on the machine can be viewed easily.