Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Could not find or load main class(I know this error is very common and I've investigated some of the most common causes, but nothing...)
Could not find or load main class [message #882838] Thu, 07 June 2012 09:45
Jorge Antonio Díaz-Benito Soriano is currently offline Jorge Antonio Díaz-Benito SorianoFriend
Messages: 10
Registered: May 2012
Junior Member
Hello there,

I'm getting that error message every time that I try to run my project. However:

1 - My main class is properly named.
2 - The package is properly structured.
3 - In Run configurations..., I can find and select the Main Class that must be chosen, and choose it. But then, when running, I get the error.

I've tried cleaning the project but nothing new.
Build automatically is activated.

The only 'strange' thing I'm realizing is this: In 'Properties', Java Build Path, in the Source tab, although I check the 'Allow output folder for source folders' and then press OK, if I open it again the option is unchecked.

Using 1.7.03.

Anyone knows what to do?

Previous Topic:ClassNotFoundException
Next Topic:Re: Using JUnit @Rule with Eclipse's test runner
Goto Forum:

Current Time: Fri Nov 24 15:18:05 GMT 2017

Powered by FUDForum. Page generated in 0.01599 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software