'JDK 11 is not reflecting

I have installed jdk 11 but when i am checking the version from command prompt it is showing the jdk 1.8 only. What I have tried is : 1. downloaded the jdk-11.0.7_windows-x64_bin.exe from oracle website 2. installed the same (my system is also 64 bit) 3. Edited the path variable 4. restarted the system



Solution 1:[1]

That is probably because you have multiple java version installed in your system. Just uninstall all the previous version from your system with only the required one. Check the version installed in your system. This will show you the new java version installed in your system.

Solution 2:[2]

You can also go without installing by downloading zip file extract it place it in you c:/program files / java and set java_home in environmental variables

Solution 3:[3]

Similar issue comes with me , in my system there are java jdk 8 and jdk 12 is installed already ,and i need jdk 11 for work with sonarcube so i also install it So after uninstall previous jdk version issue is resolved. For uninstall jdk : Go to control panel ->program->program and features -> right click on jdk program ->Uninstall.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Kumar Gaurav
Solution 2 Hari Prassad Kannan
Solution 3 Xavier Guihot