aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Could not find the main class  Program will exit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Could not find the main class  Program will exit" Watch "Could not find the main class  Program will exit" New topic
Author

Could not find the main class Program will exit

Kee Kee moon
Ranch Hand

Joined: Dec 11, 2009
Posts: 147
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

Joined: May 03, 2008
Posts: 4658
    
    5

Moved from Swing / AWT / SWT / JFace


luck, db
There are no new questions, but there may be new answers.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5843
    
    7

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?


JBoss In Action
 
 
subject: Could not find the main class Program will exit