Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are projects stored in Eclipse?

Tags:

eclipse

The Project Explorer is able to list all projects in Eclipse. I am wondering where the project information gets stored?

like image 201
user496949 Avatar asked Feb 25 '11 15:02

user496949


2 Answers

The projects can be found under the .metadata directory of your workspace:

[eclipse-workspace]/.metadata/.plugins/org.eclipse.core.resources/.projects

Each project contains a .location file (in binary format) which presumably tells eclipse where the project is located on the filesystem, if it has been imported.

like image 65
dogbane Avatar answered Sep 19 '22 06:09

dogbane


By default projects in Eclipse are stored under your workspace. You get asked where your workspace is created or which one to open whenever you open Eclipse, but you can configure it to not ask you again.

If you configured Eclipse not to ask again, then you can go to General -> Startup and Shutdown -> Workspaces in your preferences and check "Prompt for workspace on startup".

That page also lists your recently used workspaces (with probably just 1 entry, if you never explicitly specified a different one).

Note that you can also create projects that are located outside of your workspace, by explicitly specifying a separate location per-project.

like image 32
Joachim Sauer Avatar answered Sep 23 '22 06:09

Joachim Sauer