Every tutorial I've followed so far gets me to start by creating (or simply automatically creates) a class called "Main", which is then referred to by the "public static void main(String args[])" line in that class.
However, NONE of the completed projects I've downloaded from GitHub or other source-sharing sites contain a "Main" class. So, whenever I load them into IntelliJ and try to run them, I invariably get the following error message:
Error: Could not find or load main class com.Willicious.Main
Caused by: java.lang.ClassNotFoundException: com.Willicious.Main
Anyone know what's going on here?
Here's an example from a project I recently downloaded. The class containing the "public static void main(String args[])" line is called "Maze" (because it's a maze game):
public static void main(String args[]){
new MainMenu();
}
Why is it even trying to find a class called "Main" when such a class has not been specified or created within the code?
This is the problem with trying to teach oneself, far too many unanswered questions