G
G
Grisha Nadezhin2021-11-02 18:06:58
Java
Grisha Nadezhin, 2021-11-02 18:06:58

Error in running intelliJ IDEA code?

Hello everyone, just today I sat down to learn java and for a while everything was fine, but an error appeared when running the code on the run button
Error: Could not find or load main class com.company
Caused by: java.lang.ClassNotFoundException: com.company
618156e4a6e22889377248.png
618153ed80366926163089.png
initially everything it worked please help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Roo, 2021-11-02
@xez

you have twice

packge com.company;

public class Main {
  public static void main ....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question