Windows – Switching from Java 1.7 to Java 1.6 in Windows 7

javawindows 7

I changed the JAVA_HOME and Path Variable pointing to my Java 1.6 Location from Java 1.7-> tried checking the version using java -version. It showed Java 1.7.

Next, tried deleting the Java 1.7 Installation and still version shows Java 1.7. Restarted the PC twice. Any ideas?

enter image description here
enter image description here
enter image description here
enter image description here

Best Answer

The easiest way to fix this is to add the Java bin dir to the beginning of your PATH instead of at the end.

Another option would be to delete Windows\System32\java.exe, so that the actual java.exe from the bin dir in your PATH is executed.

Related Question