Cannot nest src folder solution in eclipse

Source: Internet
Author: User

Here are some of the problems that are occurring in the project:

Cannot nest ' Project/src/main/java ' inside library ' PROJECT/SRC
If you import the classpath in the Web App libraries may find PROJECT/SRC, originally here is to put the package, so he will also cause another result, is web-inf/classes in the compilation also contains the source file.


Find a workaround on the web and modify the. setting file in the appropriate project file for Eclipse
Org.eclipse.wst.common.component
If you find the following sentence

<wb-resource deploy-path= "/web-inf/classes" source-path= "/src"/>
Just change him to the form below.

<wb-resource deploy-path= "/web-inf/classes" source-path= "/src/main/java"/>

If you recompile at this point, the project still has the cannot be built until build path errors is resolved this error, but you do not see the corresponding specific prompt.
According to the hint, if it is a Java type of error, it is recommended that one of your source path be added again, most of the problem can be done.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.