This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply 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: 140
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: 4165
    
    3

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: 5536

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Could not find the main class Program will exit
 
Similar Threads
Executable jar Failed to load Main-Class manifest attribute
Could not find the main class:com.google.gwt.user.tools.WebAppCreator. Program will exit.
Eclipse - could not find the main class... program will exit
Java Newbie needs guidance
Java and the questions of an Greehorn ;)