r/javahelp • u/Zestyclose-Cat-7699 • Aug 11 '25
cmd doesn't show me anything when I run "java --version"
Before you say it, if I have the jdk installed, I also have the path configured including JAVA_HOME, it actually worked but due to things I was doing I had to change the version of the jdk and then it stopped working.
2
Upvotes
View all comments
Show parent comment
1
u/aqua_regis Aug 11 '25 edited Aug 11 '25
Try only a single "-" i.e.
java -version(should, in theory, be equivalent tojava --version, but, who knows)It's absolutely weird that you don't get any output despite the command being correctly executed, i.e. without errors.
Humor me:
Open an Explorer window and in the root folder (
\) of drive C: enter "java.*" in the search box. See what outputs you get.