I am a total newbie in Java and Eclipse. I googled for lots of help but still confused. From Eclipse I click run then choose Java application and I get this error immediatel
I also experienced this problem and could solve it. The solution was not mentioned yet.
In my case I'm working in Eclipse with Xtend and I converted the project to maven. After that there was a source-exclusion entry in your classpath file:
Then you just need to delete this line and do a clean build.