Following are the steps to install Java:
- Visit the JDK download page and download the (jdk-8uversion-windows-xxx.exe) package based on your machine configuration (either the amd64 or x64).
- Install Java from the downloaded package.
- Once installed, bring up the search box and type advanced system setting. Click on the View advanced system settings search result.
- On the system properties window, click on the Advanced tab and click on Environment Variables.
- Under the System variables section, click on New and add a variable name--JAVA_HOME--and check for the installed location of the JDK. It will be similar to C:/Program Files/Java/jdk1.8.xxx.
- Under the System variables section, scroll to find PATH and click on edit. Add %JAVA_HOME%\bin ...