修复Eclipse java引用数据库损坏? [英] Fix Eclipse java references database corruption?

查看:150
本文介绍了修复Eclipse java引用数据库损坏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使eclipse重建项目或工作区中包含的类的数据库?这是它使引用菜单操作起作用,它用于添加导入对话框等等。基本上,它是Eclipse的核心有用性的一部分。现在,它只能在我的项目的5%左右工作。

How do I make eclipse rebuild the database of classes contained within a project or workspace? This is what it uses to make the "References" menu action work, what it uses for the "Add import" dialog, etc. Basically, it's part of the core usefulness of Eclipse. And now, it's only working for maybe 5% of my project.

我已经遇到这个问题了多次:eclipse发生的事情,通过OutOfMemoryError,因为我打开了一些巨大的文件,或者因为一个工作区几个月的硬盘使用。

I've run into this problem multiple times: something happens with eclipse, either through an OutOfMemoryError because I opened some huge file, or because a workspace just has months of hard usage.

现在,我在Win32上使用Eclipse Galileo。不过,我在MacOS以及Europa和Ganymede上遇到了这个问题。

Right now, I'm using Eclipse Galileo on Win32. However, I've had this problem on MacOS as well as with Europa and Ganymede.

在过去,我已经把工作空间弄丢了,但是今天这个不是一个选择。我上一个工作区的备份是从上周五开始,但仍然意味着恢复工作的时间。当然还有另一个选择?

In the past, I've trashed my workspace and started again, but today this is not an option. My last workspace backup is from last Friday, but that still means hours of work in restoration. Surely there must be another option?

编辑:我已经使用eclipse -clean,并重建了我的项目。这是eclipse中的一个腐败问题,而不是在我的项目中。

I've used eclipse -clean as well as rebuilt my project. This is a corruption problem somewhere in eclipse, not in my project.

推荐答案

这个工作:


  • 从当前工作区导出首选项(File-> Export-> General-> Preferences)

  • 将工作区切换到新工作区

  • 将首选项导入到当前工作区

  • 将旧项目导入到新工作区(File-> Import-> General-> Existing Projects into Workspace) ,选择复制项目

  • Export preferences from your current workspace (File->Export->General->Preferences)
  • Switch workspaces to a new workspace
  • Import preferences into the current workspace
  • Import your old project into the new workspace (File->Import->General->Existing Projects into Workspace), choosing "Copy project"

这样可以使参考DB固定。要获得SVN(大概CVS)再次工作:

That works for getting the references DB fixed. To get SVN (and presumably CVS) to work again:


  • 右键单击项目,选择团队,选择共享项目。选择您正在使用的任何类型的版本控制存储库,然后单击下一步。 Eclipse应该意识到您的项目已经配置好了,只需点击完成。

  • 使用存储库更新源。

这篇关于修复Eclipse java引用数据库损坏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆