Ask coding questions

← Back to all posts
How do I fix a "Could not find or load main class Main" error?
blakejoseph (0)

Keep getting the same errors even if I change the file name to Main.Java or the name of the public class, not sure what to do.

Coder100 (19279)

class names must match file names. So on line 1, change it to:

InvisibleOne (3264)

I'm pretty sure you need to have a main method.