Newly imported project directory structure does not (main directory)

Eclipse project import a maven, you encounter such an error: package path main.java project at the beginning of programming, the java code pakge com is the beginning, as shown in FIG.
Does not lead to project compiled by

 

Error message:

 

Solution:

buil path to view projects and found that this place does not:

Right should be like this:

After removing and re-adding directories to the correct directory.

Operation method:

Right project you want to configure -> Bild Path -> Configure Build Path -> Source
click Add Folder, select the file folder you need

 

Guess you like

Origin www.cnblogs.com/libin6505/p/11220613.html