6
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?
Eh, no. Add
%JAVA_HOME%\bin
(or the full path i.e.C:\Java\jdk1.6.0_45\bin
) to the very beginning of your PATH string. – Karan – 2013-06-08T02:45:07.110