Lost Walker
Lost Walker

Reputation: 23

After importing from a git in eclipse I get the error "source folder is not java project"

I know other people have had this problem, but I can't get it to work.

I imported a project from a git and I get an error saying "Project is not a Java project" when adding a class and it doesn't show up in the run config. Project here if it is something wrong with the project and not eclipse. I've heard answers to this with project facet and maven, but I don't have either.

I am running the latest version of eclipse and clean installed it today

Upvotes: 2

Views: 1382

Answers (1)

VonC
VonC

Reputation: 1323333

The error should be "“Source folder is not a Java project”".

Check the content of your .project and .classpath.

You can modify the .project to add the org.eclipse.jdt.core.javanature manually.
(But adding the java facet should be the recommended way)

  • regarding the lack of Java facet, make sure your Eclipse has the right Java version support, as described here.
  • a .project and .classpath can be manually generated or copied from another simple Java Eclispe project.

Upvotes: 1

Related Questions