How to open an existing project in Eclipse?

╄→尐↘猪︶ㄣ 提交于 2019-12-03 15:44:09

问题


I have just created several project using Eclipse. Now restart Eclipse and want to see one of the projects. How can I do it?

I have tried File -> Import -> General -> Existing Project into Workspace.

Then I select the directory of the project that I want to work on and, as a result, I get an error message: "Some projects cannot be imported because they already exist in the workspace".

So, it looks like that I do not need to import a project, because they are already in the workspace... But how I can "see" the projects that are in the workspace? If I create a new project, I see it as well as all other existing projects but I do not want to create a new project just to see the existing projects.


回答1:


Maybe you have closed the project and configured the project explorer view to filter closed projects.

In that case, have a look at Filters in the Project Explorer view. Make sure that closed projects are disabled in the "Filters" view.




回答2:


In case you closed multiple projects and trying to re-open all of them then in Windows->Show view-> Navigator




回答3:


From the main menu bar, select command link File > Import.... The Import wizard opens.
Select General > Existing Project into Workspace and click Next.
Choose either Select root directory or Select archive file and click the associated Browse to locate the directory or file containing the projects.
Under Projects select the project or projects which you would like to import.
Click Finish to start the import.



回答4:


from Eclipse main gui: select "Window->Show View->Other->General->Project Explorer" Double-clicking on "Project Explorer" brings up the "Project Explorer" window which shows every project in your workspace. That worked for me.

Good luck.




回答5:


In Eclipse, try Project > Open Project and select the projects to be opened.




回答6:


In case you closed multiple projects and trying to re-open all of them then in Project Explorer, select all projects. Go to Project -> Open Project.




回答7:


I also have just faced with this problem that how to open existing file. And none of answers was helpful. That's why I tried by myself.

Direction: File -> Open file -> Workspace (with you had chosen first in creating your project) -> Package (which you already created your project in) -> src (source file) -> Created package ->

And now your searching project's nodepad format. I hope it would be helpful. If any mistake here, sorry beforehand.



来源:https://stackoverflow.com/questions/14220633/how-to-open-an-existing-project-in-eclipse

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!