“java -version”in cmd gives no result [closed]

Tags: ,

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:WINDOWSsystem32>java -version


Something must be wrong, but I can’t figure what…


  1. Move C:Program FilesJavajdk-14.0.2binjava 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.

Source: stackoverflow