Hi, the main issue is that Windows can not find the java program in its Environment. So we need to add the exact path (e.g. "C:\Program Files (x86)\Java\jre8\bin") of Java program in the Environment Variable path. To do so please follow the steps given below:
- Right click on My computer
- Select Properties
- Now click on the "Advanced System Settings" link on the left side of the window.
- Now in the system Properties window click on the "Environment Variable" button
- Now you will see the window is divided into mainly two sections. In the lower section titled ad System variables, look for a value called path. If you find any just open and add a ";" after the line ending in the variable value section.
- Now enter the path for the java program after the ";" in the value section
e.g. for java 1.6.x = C:\Program Files (x86)\Java\jre6\bin
java 1.7.x = C:\Program Files (x86)\Java\jre7\bin
java 1.8.x = C:\Program Files (x86)\Java\jre8\bin
Please note that the above examples are for default java installation locations. you may have a different path like if you have installed in D:\ or E:\ drive.
- Once you put the correct path in the Environment variable. windows will be able to start the "javaw.exe" program from its correct location.
Thanks and Regards
-Sudipta Kr. Mazumdar