In the pop-up window, go to the system variable section and click on the new button to add another new environmental variable named JAVA_HOME and add your java JDK location in the value filed like C:\Program Files\Java\jdk1.8.0_131.Īfter adding the value, you need to edit the path variable, which already exists in the system variable box. For setup, Go to System Properties by Right Click on My Computer and selecting Properties > Advanced > Environment Variables.
So, if that is not set in your machine, you must set up those environment variables. Note: you may get some errors because before running the command, you need to add two environment variables to get it working.