Setting the JAVA_HOME variable
When I installed Java, it was installed at C:\Sun.
I set JAVA_HOME to be C:\Sun\SDK\jdk. Basically look for your jdk directory. And inside there should be a bin directory that contains java.exe ... etc.
[Click to add or edit comments])
Please prepend comments below including a date