[Solved] Source folder is not a Java Project error in Eclipse

If you are trying to import maven project into eclipse or creating a maven web project in eclipse, it might be possible that you face following error : Source folder is not a Java project. There are two ways to solve this error. One is using mvn eclipse:eclipse (deprecated) and other is by converting project into faceted form.

Read Also :   Java Was Started by Returned Exit Code=13 Error in Eclipse

Understand the error

This error occurs when the project created by you is not a java project in eclipse. If you try to add new java class to such project then "Source folder is not a Java Project error" occurs.


Producing error : Source folder is not a Java Project

[Fixed] Error : Source folder is not a Java Project

1. Right click on your project and select "Properties"

2. In Properties, click on "Project Facets"

Related Article
3. Then click on "Convert to faceted form..."

Steps to solve error : Source folder is not a Java Project

4. Then select "Java"

solve error : Source folder is not a Java Project


5. Click on "Apply and Ok"

Yayy!! This will resolve the error "Source folder is not a Java Project". Please mention in the comments if you have any questions.

0 Comments