First of all, /WEB-INF/src is the wrong place to store your java sources (since the contents of the WEB-INF folder are deployed to your server); you should want to get them out of /WEB-INF (for example, in / src in the root of the project)
In any case, you need to tell Eclipse where your sources are and where you need classes. This is done in the project properties dialog box:
Right-click the project in Eclipse, select "Properties"
Click on the Java build path on the left
Click the source tab on the right.
Click the "Add Folder" button and add the source folder (/ WEB-INF / src or wherever you move it)
Make sure the output folders for source folders are listed below.
With the newly added source path, select the output folder and specify it in / WEB-INF / classes or another location of your choice.
source share