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?
2.1m questions
2.1m answers
60 comments
57.0k users