You have to tell eclipse which folders contain the source to compile. Right click the project, go to properties, then Java Build Path, then the Source tab.