D
D
Daniil Kozhemyakin2019-11-02 21:42:56
Java
Daniil Kozhemyakin, 2019-11-02 21:42:56

Hello! I don’t understand a little, Java applications don’t start for me, they compile, but don’t start, what should I do?

I am starting to learn Java. I installed the JDK, changed the Path, everything seems to work, the programs compile, but they don't run. I'm running through the command line. I've been suffering for two days now! Help(((
log:

Error: Could not find or load main class C:\Users\Даниил\Documents\hi.java

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Сергей Горностаев, 2019-11-02
@Dani228

Исполняемый файл java принимает полное имя класса, содержащего метод main, а не путь к файлу исходника.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question