Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
282 views
in Technique[技术] by (71.8m points)

Windows CMD java -version doesn't show anything

I have spent the last few hours trying to learn how to run java programs from the windows command prompt. I have done a bunch of stuff like downloading the newest version of jdk and the jre and earlier today when I put the java -version in the windows cmd the version of java that was on my computer popped up which was 15.0.1. I have now downloaded 15.0.2 in probably not the most optimal way I put it in the java folder next to the jre and just deleted the old jdk and changed the names of all my system variables from 15.0.1 to 15.0.2 now when I type java -version to the command prompt nothing happens and when I am in the correct file and do javac HelloWorld.java it does not make the java class file. What to do?

CMD Picture

question from:https://stackoverflow.com/questions/65851587/windows-cmd-java-version-doesnt-show-anything

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...