JAVA_HOME environment variable and Java JDK fun
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.
You need to reset your path variable to point to 1.6
something like
Additionally, make sure the variable JAVA_HOME
is also set with the above location.