What program is giving that message? How are you executing the program?
I'm not sure what a "main class" is?

The java program requires a main() method in the class it is starting execution...