Thursday, April 2, 2020

[Solved] Source Folder Is Not A Java Project Error In Eclipse

https://javahungry.blogspot.com/2014/02/best-books-for-learning-java-must-read.html



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"

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.

No comments:

Post a Comment

Configure LOG4J in INTELLIJ in Windows.

IntelliJ debugger for temporary logging In this video, it is shown how to use Log4j in Intellij. Sorry for the audio quality :) Log4j zip fi...