I am using Eclipse and have not used Java for sometime. However, I can compile my code on the command-line just fine and generate the necessary .class files. In
.class
I resolved the problem by following these steps:
Select the project - Right click - java build path.
In source tab - you change the src to src/main/java.
src
src/main/java
Eclipse will reorder all the project.