Reputation: 23
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
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)
.project
and .classpath
can be manually generated or copied from another simple Java Eclispe project.Upvotes: 1