I had the same problem. The solution is to add JAVA_HOME/bin to your PATH.
Here are the steps for Windows:
- Right click "My Computer" and go to "Properties"
- Select the "Advanced" tab
- Hit "Environment Variables" button
- Make sure you have an entry for JAVA_HOME. It points to the path where you installed the JDK.
- Append to the PATH: ;%JAVA_HOME%/bin