Make sure JDK7 or JDK8 is installed depending on your OS bits. If you use 32 bits, install JDK7 or 8 of 32 bits. After installing JDK, your JAVA_HOME in your system will be located in
C:\Program Files\Java\jdk1.8.0_40
To check if your JAVA_HOME is installed, CLICK Start menu > Computer > Right-click on the computer > Properties > The Home control panel will appear,> click Advanced system settings , in the Advanced tab section , click> Environment variables and check >> System variables for> Path if Java exists [ C:\ProgramData\Oracle\Java\javapath; ] than you are comfortable with.
Make sure you have JAVA_HOME in your system variables.
Hope this helps you. If this helps you, mark it so that it is useful to others.
source share