How do I create the
As you've discovered, you can't have a source folder inside another source folder, so before you can create
src/main/java you have to tell Eclipse not to treat
src as a source folder. To do this, right click on the
src folder and select build path -> remove from build path.
Once you have done this
src will appear in the folder tree in its normal place, so you can create the
java folders under it, and move the existing
src/main/java/com. Finally right-click the newly-created
java folder and select build path -> use as source folder.