eclipse项目文件突然消失了,Eclipse:我的所有项目从Project Explorer中消失

It seems like all my projects (except one) disappeared from the view Project Explorer.

I'm using Eclipse Java EE IDE for Web Developers.

Version: Helios Service Release 2

Build id: 20110218-0911

Note: all the projects are present on the file system.

How to bring them back? Any ideas?

解决方案

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.

Close Eclipse.

cd /home/user/workspace/.metadata/.plugins

mv org.eclipse.core.resources org.eclipse.core.resources_bak

Start Eclipse

Do File->Import

General->Existing Projects into Workspace

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.

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值