Eclipse: All my projects disappeared from Project Explorer

This happened to me. I'm still not sure how, but the reason was that my workspace meta data had become corrupted, probably due to Eclipse being improperly shutdown. The solution, as explained here, is to:

Note, steps 2 & 3 are optional if Eclipse isn't crashing, but just not showing any projects.

  1. Close Eclipse.
  2. cd /home/user/workspace/.metadata/.plugins
  3. mv org.eclipse.core.resources org.eclipse.core.resources_bak
  4. Start Eclipse
  5. Do File->Import
  6. General->Existing Projects into Workspace
  7. Click the "Select root directory" field and browse to each subfolder in your workspace folder, and import.

For me, this was very tedious, since I had several dozen projects in my workspace, but it's the only solution I found short of restoring my entire workspace from a backup.

Edit: This answer is now quite old, and better solutions may now exist. Although I haven't had need to try it, I recommend attempting @antonagestam's solution first, as others have suggested it may be faster and more effective.

Edit: Since it's fairly simple, I'd recommend trying antonagestam's solution first. However, this problem recently re-occurred for me, and that solution did not work in my case. But neither did it interfere with this solution.


Go to

File --> Import --> General --> Existing Project into Workspace

Then, In Root Directory Enter the workspace path where all your projects saved & click refresh as below

enter image description here

And Click Finish

enter image description here


I had the same problem in Aptana, all of a sudden my projects were gone. Solved it by going to the drop-down menu in Project Explorer and going Top Level Elements -> Projects.


I was having the same problem for Android projects in Eclipse. This link was very helpful in restoring the missing projects.

  1. Go to 'File->Import->General->From Existing Project'.
  2. Select the root folder to the Workspace.
  3. Click on the 'Refresh' button.
  4. Select the required projects and click 'Finish' button.

Tags:

Eclipse