Given
- Multiple JDKs intalled in my Windows machine.. say JDK X, JDK Y,.. etc
- Environment variables JAVA_HOME & PATH are pointing to JDK X.
Action
java -versionat cmd, it printed JDK Y at console.
Expectation
- want
java -versionto print JDK X
What am I missing, so that it should print JDK X ?

where javaon the command line to see which executable it picks. I think some common installs put ajava.exeinC:\Windows\System32for some reason ...