This may surprise you, but when you do it java.exeor javaw.exewithout specifying a path, it does a copy in C:\Windows\system32. These copies are actually redirectors that read registry keys to determine the latest version of Java. However, you can override it using an environment variable JAVA_HOME.
Windows " ", "", "", " "... , , , XP. , Win7.
: , JAVA_HOME JVM/JDK. 32- XP C:\Program Files\Java\jdk1.6.0_24, JDK.