Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know the jdk version on my machine?

Tags:

java

java-8

I have recently uninstalled JDK 11 and installed JDK 8. For confirmation, I want to check which JDK is installed on my Windows 10 machine. I typed java -version on cmd then get the error message

java is not recognized as an internal or external command

Question: How to know which JDK version installed on pc?

like image 307
Mayank Kataria Avatar asked Aug 05 '19 17:08

Mayank Kataria


Video Answer


1 Answers

you might need to add path in environment variables which you can find in Control Panel open the Jdk where you installed and add until /bin in the path in environment variables.

Add until /bin in path variable in System Variables which is residing in Environment Variables.

Then do java -version which might show up.

If still problem persists, try restarting your pc and see.

like image 74
ganga Avatar answered Oct 03 '22 21:10

ganga