I am using Windows 7, the problem I had was simple:
I had this for my JAVA_HOME environment variable value:
"C:\Program Files\Java\jdk1.7.0_51;"
when it wants:
"C:\Program Files\Java\jdk1.7.0_51"
the semi-colon strikes again!
:)
This is how I solved this problem, so this should be one possible solution.