Where in an Eclipse workspace is the list of projects stored?

EclipseProject

Eclipse Problem Overview


I use Eclipse with "external" projects - i.e. projects created from existing source.

Poking around in the workspace files, I cannot find any reference to these projects. My question is: how does Eclipse keep track of these projects?

I'd like to be able to add such a project to the workspace automatically (by generating .project and .classpath files).

Eclipse Solutions


Solution 1 - Eclipse

Windows:

<workspace>\.metadata\.plugins\org.eclipse.core.resources\.projects\

Linux / osx:

<workspace>/.metadata/.plugins/org.eclipse.core.resources/.projects/

Your project can exist outside the workspace, but all Eclipse-specific metadata are stored in that org.eclipse.core.resources\.projects directory As noted in the comments by tk421storm, and in Jeegar Patel's answer:

> In order for manual changes to take effect, make sure to do File -> Refresh afterwards.

Solution 2 - Eclipse

In Mac OS X, it is under

<workspace>/.metadata/.plugins/org.eclipse.core.resources/.projects

Solution 3 - Eclipse

In Eclipse 3.3:

It's installed under your Eclipse workspace. Something like:

.metadata\.plugins\org.eclipse.core.resources\.projects\

within your workspace folder.

Under that folder is one folder per project. There's a file in there called .location, but it's binary.

So it looks like you can't do what you want, without interacting w/ Eclipse programmatically.

Solution 4 - Eclipse

If you are using Perforce (imported the project as a Perforce project), then .cproject and .project will be located under the root of the PERFORCE project, not on the workspace folder.

Hope this helps :)

Solution 5 - Eclipse

In Linux after deleting

<workspace>\.metadata\.plugins\org.eclipse.core.resources\.projects\

Does not worked.

After that i have done File->Refresh

Then it cleared all old project listed from eclipse.

Solution 6 - Eclipse

You can also have several workspaces - so you can connect to one and have set "A" of projects - and then connect to a different set when ever you like.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionKris PrudenView Question on Stackoverflow
Solution 1 - EclipseVonCView Answer on Stackoverflow
Solution 2 - EclipseMagne LandView Answer on Stackoverflow
Solution 3 - EclipseDave DiFrancoView Answer on Stackoverflow
Solution 4 - EclipseSebastianView Answer on Stackoverflow
Solution 5 - EclipseJeegar PatelView Answer on Stackoverflow
Solution 6 - EclipsesilverbuggView Answer on Stackoverflow