I wanted to get Java running at 1.6xxx - I changed the JAVA_HOME variable and pointed it to the directory C:\\Program Files\\Java\\jdk1.6.0._16.
I restart the PC - and I
JAVA_HOME is used by other applications, such as Tomcat. Windows just checks the PATH environment variable for locations where it can find the java executable.