It sounds like your project isn't set up properly. Maybe you have something like "src/main/" instead of "src/main/java" set as the source folder in your eclipse project?
What do the Java files look like to you in Eclipse? Do they look like normal files where you have to go through a standard file directory tree or do you have all of the folders show up like proper Java packages?