P
P
Pavel2016-07-27 13:46:16
Java
Pavel, 2016-07-27 13:46:16

Why did my java program compile but not run?

There was code in Head First Java 2nd Edition by Kathy Sierra, Bert Bates in Chapter 11 that I copied and pasted to myself. I compiled it without problems, but when I run it, the command line gives me could not find or load main class. What to do, and why the program does not start? Maybe it has something to do with the java version?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Kornachev, 2016-07-27
@keepoutsashkakakasha

link
chapter "Writing a program Hello, World!", everything is shown and described how and why exactly to compile and run it through the command line. Better yet, read it in its entirety.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question