Install JAVA
If your pc does not have java pre-installed then you can follow this step otherwise skip.
If you are not sure whether your PC is having java or not then you can check using following step.
- Open Command prompt and type java -version.
C:\Users\Your Name>java -version
- If java is installed on your PC then you’ll see something like this on your command prompt.
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
- If you do not have java installed on your PC, you can download it from here.
Setup JAVA in Windows
Follow below steps to setup global java path.
- Go to System
Control Panel > System and Security > System > Advanced System Settings
- Go to “Advanced Tab” and select “Environmental Variables”
Advanced > Environmental Variables
- Then select path from System Variables and click on edit button below.
path > edit
- Click on New button and add the path where java is installed followed by /bin. Default path of java is “C:\Program Files\Java\jdk1.8.0_121\bin” then click on “OK”.
New > Enter java path followed by /bin
- To Check whether java is successfully installed on your PC, open command prompt and type java -version
C:\Users\Your Name>java -version
If Java is successfully installed on your PC then you’ll see following
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)