Go to the Build Path
dialog (right-click project > Build Path > Configure Build Path
) and make sure you have the correct source folder listed, and make sure it exists.
The source folder is the one that holds your sources, usuglaly in the form: project/src/com/yourpackage/...