Eclipse project already exists
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17027759/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse project already exists
提问by
I deleted a project in my workspace, then tried to create a new project with the same name. Eclipse told me that it overlaps the location of another project (the one I just deleted). How do I fix this?
I deleted a project in my workspace, then tried to create a new project with the same name. Eclipse told me that it overlaps the location of another project (the one I just deleted). How do I fix this?
回答by Keshav Prashanth
This is what I did. Go to Window --> Show View --> Project Explorer Then right click on the project name that you want to delete and Click Delete.
This is what I did. Go to Window --> Show View --> Project Explorer Then right click on the project name that you want to delete and Click Delete.
In the dialogue box, check 'Delete Project Contents on disk'
In the dialogue box, check 'Delete Project Contents on disk'
It worked. I was able to create the project with same name again.
It worked. I was able to create the project with same name again.
回答by Yannick
I had the same problem with the IBM Integration Toolkit, which is based on Eclipse. The problem also occurs in Android Studio, which is also based on Eclipse. crazyscot seems to have the right answer at A project with that name already exists in the workspace eclipseand his solution worked for me.
I had the same problem with the IBM Integration Toolkit, which is based on Eclipse. The problem also occurs in Android Studio, which is also based on Eclipse. crazyscot seems to have the right answer at A project with that name already exists in the workspace eclipseand his solution worked for me.
You need to open up the Project Explorer view (it may already be open) and delete the project from within there.
You need to open up the Project Explorer view (it may already be open) and delete the project from within there.
回答by Max
Go to Window >> Preferences >> General >> startup and shutdown >> workspace theen select Recent work space then click Remove and close the program and open it again
Go to Window >> Preferences >> General >> startup and shutdown >> workspace theen select Recent work space then click Remove and close the program and open it again
回答by Ron AB
First you create a project in some other location with the same name of your project as before.
First you create a project in some other location with the same name of your project as before.
Now delete this project by right clicking on project > Delete. Do not check the dialog "Delete Project Contents on Disk". Now you move your newly created project through file manager to the original location(location where you are not able to import your project).
Now delete this project by right clicking on project > Delete. Do not check the dialog "Delete Project Contents on Disk". Now you move your newly created project through file manager to the original location(location where you are not able to import your project).
Then import the project from the newly moved location(location where you are not able to import your project).
Then import the project from the newly moved location(location where you are not able to import your project).
回答by Sharanabasu Angadi
there will be a file .project xml file in the project and its content looks like
there will be a file .project xml file in the project and its content looks like
<projectDescription>
<name>ProjectName</name>
.
.
.
</projectDescription>
here ProjectName
is the name of project you can change it to whatever you want.
here ProjectName
is the name of project you can change it to whatever you want.
回答by user11819729
After deleting the project from Eclipse IDE(Project Explorer), remove it from work space folder as well. Workspace folder path - C:\Users\username\workspace (it can be different for your system).
After deleting the project from Eclipse IDE(Project Explorer), remove it from work space folder as well. Workspace folder path - C:\Users\username\workspace (it can be different for your system).
回答by thethakuri
You have to manually delete the project folder from your "workspace" directory (wherever you have defined it to be).
You have to manually delete the project folder from your "workspace" directory (wherever you have defined it to be).
回答by user1442034
try moving the project and try importing
try moving the project and try importing
回答by ankit upadhyay
go to tab window>preferences>search workspace> then make sure in last / is not in your recent workspace. Example-:/var/www/html
go to tab window>preferences>search workspace> then make sure in last / is not in your recent workspace. Example-:/var/www/html
your url should like above.
your url should like above.
回答by Mawg says reinstate Monica
With the same problem, I did a text search and found an XML file containing the name of the project.
With the same problem, I did a text search and found an XML file containing the name of the project.
I had copied the project from another project. Let's say that I copied project A to project B. Although the XML file in the new project (B) was named for project B, it had an entry which still referred to project A. When I edited it, the problem went away.
I had copied the project from another project. Let's say that I copied project A to project B. Although the XML file in the new project (B) was named for project B, it had an entry which still referred to project A. When I edited it, the problem went away.