I have installed java 14 in my system at the following location. C:\Program Files\Java\jdk-14.0.1 when I run java -version it is still showing java version “1.8.0_251”. How do I change that to point to Java 14.
I have set JAVA_HOME to C:\Program Files\Java\jdk-14.0.1\bin and appended it to Path of system variable but it is still showing the older version.
Can someone help me with this?