Code snippet
I believe that this is one of the most common questions from beginners. I learn from the textbook site ProgLang . Requested to change the environment
On another site, when I had to look for a solution, they asked to add PATH and CLASSPATH, which had to be removed, that with it, that without it, nothing changes. On another site, when I had to find a solution, they asked me to add PATH and CLASSPATH, which had to be removed, that with it, that without it, nothing changes
If it was possible to figure out the javac command, then why the command line does not display the result - no.

  • What are you trying to do? If you run the file, it is java -jar file.jar - ArchDemon
  • Do you have a file MyFirstJavaProgram.class in the directory C:\Users\HP\Desktop\MyJava MyFirstJavaProgram.class ? - Sergey Gornostaev 3:49 pm
  • @SergeyGornostaev, yes. - θyu22
  • @ArchDemon, I'm trying to write "Hello, World" to the console. Can you explain what java -jar file.jar means? - θyu22 5:09
  • Do you use the package directive in the source code of this class? - Sergey Gornostaev

0