Problem is that your folder is not identified as a Source folder.
- Right click on the project folder -> Properties
- Choose ‘Java Build Path’
- Click on ‘Sources’ tab on top
- Click on ‘Add Folder’ on the right panel
- Select your folders and apply
Problem is that your folder is not identified as a Source folder.