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 -version
at cmd, it printed JDK Y at console.
Expectation
- want
java -version
to print JDK X
What am I missing, so that it should print JDK X ?