'Cannot create project content in workspace' when trying to recreate a project

user1158831 picture user1158831 · Jan 31, 2012 · Viewed 24.4k times · Source

I created one project in Eclipse using Existing Source option. Later I found some config problem with it and deleted the project from eclipse keeping the contents of the folder untouched. Now again I tried to create a new project with the same folder as the source folder. But Eclipse is not allowing me to do it and its giving error 'Cannot create project content in workspace'. I checked in the source folder for any .PROJECT files, but none is existing. Do anyone has a solution to this ?

Answer

E-Riz picture E-Riz · Feb 1, 2012

As described by this message on the Eclipse forums, the project location you are selecting is already in your workspace. The "create from existing" feature needs to have the source located outside the workspace. You need to either move the source out of the workspace or create a New project giving the folder containing the project as the project name.