I have both jdk and jre installed on my windows 7.
I have set the JAVA_HOME to
C:\\Program Files\\Java\\jdk1.6.0_23
I have add
since you are on windows, java doesn't work like that. there is a java.exe in some windows directory (%windir% system32 for you)
This java.exe actually looks in the registry HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment
PATH won't help ya! Since I tend to get lazy I delete the JRE and create a junction
to the JDK instead.