Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"java -version"in cmd gives no result

I tried to install java 14 manually on Windows 10. I set the System Variables as in this picture.

But when I use the command "java -version" literally nothing happens...

C:\WINDOWS\system32>java -version

C:\WINDOWS\system32>

Something must be wrong, but I can't figure what...

like image 834
Gesichtsfelsen Avatar asked Jun 05 '26 04:06

Gesichtsfelsen


1 Answers

  1. Move C:\Program Files\Java\jdk-14.0.2\bin\java to the beginning in the PATH variable.
  2. Important - Open a new cmd window and use the command java -version. Any already open cmd windows do not reflect the settings that you do in the environment variables form/window.
like image 107
Arvind Kumar Avinash Avatar answered Jun 06 '26 19:06

Arvind Kumar Avinash



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!