H
H
Homise2017-08-23 12:31:56
Java
Homise, 2017-08-23 12:31:56

How to fix this error in IDEA?

I already tried to google, the translator didn’t translate clearly either ... I can’t understand what needs to be done ....
Error: Error: Could not find or load main class com.company.Main
cc1dab3b990143648d3380afd2be1e21.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
longclaps, 2017-08-23
@Homise

Rename the class to "Main".

V
Vasily Vasilyev, 2017-08-23
@Basil_Dev

The name of the class file (Main.java you have) and the name of the class inside this file (Line #3, "class Test") must match.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question