Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Could not find the main class Program will exit

 
Kee Kee moon
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use eclipse IDE and it happens once in a while. When I face the issue "Could not find the mail class Program will exit", I recreate a new project and copy my java source programs to new project, then it works again.
I want to find the root cause instead of creating a new project/copy java program ....
Please help.
Thanks
 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved from Swing / AWT / SWT / JFace
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) What kind of project did you create in Eclipse?

2) What is the full project relative path to the class with the main() method?

3) It appears that the app will run at least once and then after a while you get the "could not find main class" error. What do you do to the project between the time that it runs and the time that it doesn't run? Do you edit files? Do you recompile? Do you add/remove things?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic