the problem is that when you delete a project maybe sts only close it. try view menu --> uncheck closed projects now you will see all closed project, simply delete it.


make sure it is really not in workspace, also if there aren't any other projects with the same name. if not, just delete the .metadata folder or create a new workspace.


check if you still have the project in folder of the workspace on disk. you may have deleted in sts, without checking 'delete on disk'. so, the project may be still there in the workspace folder though its deleted in sts.


i get this issue from time to time. usually i just open a new workspace but sounds like you don't want to loose other projects.

i simply open the.project file in my project and change the name of the project in name tag.

good luck!


probably whey you 'accidentally deleted' your project, you only deleted it from the eclipse workspace, but not from the actual workspace folder on your hard-drive (as other people pointed out, eclipse can arbitrarily map workspace projects to files on disk, so it is possible for a project to be 'deleted' from your eclipse workspace but still exist on disk.

the good news is the files you deleted are actually still there.

instead of importing your project from a zip, you may just want to import those files from the workspace folder back into your eclipse workspace.


generally this kind of problems not occurred you can go to project option and clean and than restart sts. may be sts is not synched with the latest configured project.


when you launch spring tools suite, it will ask you to select directory as workspace as below:

spring tools suite launcher

if the directory you selected here (i.e., workspace directory) is the same as the directory where the project that you are going to import resides, then you will get some projects cannot be imported because they already exist in the workspace.

therefore, to solve the issue,

  • close spring tool suite
  • create a new directory
  • launch spring tool suite again
  • and, select that as your workspace
  • launch the application and you would be able to import as you mentioned in your question

it solved my problem. hope it helps..

happy coding!!


the workspace in sts/eclipse is not automatically the same as the file structure that you have on disc in your workspace directory. you can have projects in this workspace folder or somewhere else on disc.

to get them into your project explorer (and access them from inside sts/eclipse), you need to import them (import existing projects into workspace). then you can select the folder where those projects are located in. in case you have those projects already in your workspace folder on disc, you can choose the workspace folder as root folder in the wizard. it will show all the projects that exist on disc in that folder and grey those out that are already imported/referenced in your workspace in eclipse.

Related Query

More Query from same tag