Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 ?

like image 355
user1158831 Avatar asked Jan 31 '12 07:01

user1158831


People also ask

How do I copy a project from one workspace to another in eclipse?

Create a new Eclipse workspace (like you have done already) Import the projects you want to move using File/Import/General/Existing Projects and select the check box "copy projects into workspace"

How do I import a project into workspace?

Click File > Import. In the Import dialog, expand General, click Existing Projects into Workspace, then click Next. Select the Select archive file option, then click that option's Browse button. Click Open. Click Finish to continue.

How do I change the project workspace?

In Eclipse , go to File -> Switch Workspace , choose or create a new workspace.


1 Answers

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.

like image 84
E-Riz Avatar answered Oct 05 '22 06:10

E-Riz