Reputation: 5816
I upgraded to java and set to following advance envirnment variables frrom windows UI(not by command prompt)
JAVA_HOME = C:\Program Files\Java\jdk1.7.0_51
PATH = %JAVA_HOME\bin%
when i do java - version
it reflects the right java version as "1.7.0_51"
but when i try to revert back to jav java 6 after reverting java_home (from windows UI )back to
JAVA_HOME = C:\Program Files\Java\jdk1.6.0_43
PATH = %JAVA_HOME\bin%
i opened new commad prompt but java - version
still reflects the java version as "1.7.0_51"
should it not reflect java version as.6.0_43 ? Can't i go back to java 6 just by reverting java_home?
Upvotes: 0
Views: 599
Reputation: 2861
There is probably a java.exe in your C:\WINDOWS\System32\ folder leftover from the previous installation. Replace it with the one in C:\Program Files\Java\jre6\bin.
Upvotes: 2