For Windows 7, I\'ve installed JDK in both 32 and 64 bit versions. The versions are 8, update 20 for all four installations. http://www.oracle.com/technetwork/java/javase/d
I get this error because I was using Powershell and it wasn't seeing environment variable. (I don't know way) Then I used CMD and it ran successfully.
Powershell
environment variable
CMD