尝试在 Eclipse 中保存工作台状态时出现问题

发布于 2024-10-17 02:02:25 字数 313 浏览 4 评论 0原文

每次关闭 Eclipse(Windows Vista 中的 Helios Release 1)时都会遇到问题。这是错误日志:

尝试保存工作台状态时发生问题。 保存过程中出现问题。 保存变量和容器时出现问题 C:\Users...(工作空间目录)....metadata.plugins\org.eclipse.jdt.core\variablesAndContainers.dat (访问被拒绝)

当我开始使用 Eclipse 时,我曾经将工作空间放在不同的目录中。然后我把它移到了另一个位置。加载工作区时它工作正常。

有什么想法如何修复它吗?

I have a problem each time I close Eclipse (Helios Release 1 in Windows Vista). This is the error log:

Problems occurred while trying to save the state of the workbench.
Problems occurred during save.
Problems while saving variables and containers
C:\Users...(workspace dir)....metadata.plugins\org.eclipse.jdt.core\variablesAndContainers.dat (Access Denied)

When I started using Eclipse I used to have the workspace in different directory. Then I moved it to a different location. On loading the workspace it works correct.

Any ideas how to fix it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

清旖 2024-10-24 02:02:26

要修复此问题,请转到您的工作区并删除 .metadata 文件夹。重新启动 eclipse 并将其指向旧工作区所在的位置并使用 File -> 加载项目新的。

只能一一加载,但至少解决了问题

To fix go to your workspace and delete the .metadata folder. Restart eclipse and point it to where the old workspace was and load projects using File -> New.

You can only load one by one but at least it solved the issues

秋意浓 2024-10-24 02:02:26

现在看来问题已经解决了。我设法以一种非正统的(在我看来)方式做到了这一点。看来访问有问题。 Eclipse 无法访问其自己的 .dat 文件。可能是因为一些 windows-eclipse 的误解。我尝试删除出错的文件,Eclipse 再次创建了它们。就这样,问题就解决了。

It seems like the problems is now solved. I managed to do that in an unorthodox (in my opinion) way. It seemed that there was an access problem. Eclipse didn't have access to its own .dat files. Probably because of some windows-eclipse misunderstanding. I tried to delete the files that were making an error and Eclipse created them again. Like that, problem was solved.

-残月青衣踏尘吟 2024-10-24 02:02:26

最好的方法是查看 WORKSPACE/.metadata/.log,其中 Eclipse 会吐出所有错误的内容。也许只有一个小文件需要删除或解锁。因此您不需要从头开始导入所有以前的项目

Best way is looking into WORKSPACE/.metadata/.log where Eclipse spits out all everything what's wrong. Maybe there is just one small file to kill or unlock. So you don't need to import all former projects from scratch

稳稳的幸福 2024-10-24 02:02:26

我通过进入以下内容修复了它:

workspace\.metadata\.plugins\org.eclipse.jdt.core\.org.eclipse.jdt.core.external.folders

我取消隐藏 .project 文件并授予系统、管理员等文件的权限。

我的问题得到了解决

I fixed it by going into:

workspace\.metadata\.plugins\org.eclipse.jdt.core\.org.eclipse.jdt.core.external.folders

I unhid the .project file and granted permission to the file for system, admins etc.

My problem was solved

残花月 2024-10-24 02:02:26

我不确定问题是否相同,但就我而言,Windows Defender 中的受控文件夹访问是我的错误根源。

我在Virus@Thread保护设置中关闭并重新启动eclipse,就OK了。

I'm not sure if the problem is the same but in my case was the Controlled folder access in the windows defender that was the source of my error.

I turned off in the Virus @ Thread protection settings and restarted eclipse and was OK.

潜移默化 2024-10-24 02:02:26

我已经修好了。

  1. 将您的项目从该驱动器复制到另一个驱动器。
  2. 然后,您需要删除旧数据中的项目。
  3. 再次将项目从复制的驱动器(步骤 1)复制到旧驱动器。
    现在,重新启动 Eclipse 并运行您的项目。
    祝你好运!

I was fixed it.

  1. Copy your project from this drive to another drive.
  2. Then, you need to delete your project in the old data.
  3. Copy the project again from the copied drive (step 1) to the old drive.
    And now, restart Eclipse and run your project.
    Good luck!
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文