I have the same problem. Using Windows 7, I have to do this:
- Go to the java directory and copy your Java path.
C:\Program Files\Java\jdk1.8.0_40\bin
- Right click on my computer,
- Click Properties
- Go to the "Advanced system settings" section, click
- Click "Environment Variables".
- Go to the System Variables section and you will find an entry named path.
- Double click on the path
- Add a semicolon (;) to the end of this line
- After the semicolon has copied your path: C: \ Program Files \ Java \ jdk1.8.0_40 \ bin
- To apply
That should be enough. At this point, your file should work. Double-click on it and go to the end, put a semicolon and paste your path, apply and good. Now it should work.
source share