尝试在 Eclipse 中保存工作台状态时出现问题
每次关闭 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
要修复此问题,请转到您的工作区并删除 .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
现在看来问题已经解决了。我设法以一种非正统的(在我看来)方式做到了这一点。看来访问有问题。 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.
最好的方法是查看 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
我通过进入以下内容修复了它:
我取消隐藏 .project 文件并授予系统、管理员等文件的权限。
我的问题得到了解决
I fixed it by going into:
I unhid the .project file and granted permission to the file for system, admins etc.
My problem was solved
我不确定问题是否相同,但就我而言,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.
我已经修好了。
现在,重新启动 Eclipse 并运行您的项目。
祝你好运!
I was fixed it.
And now, restart Eclipse and run your project.
Good luck!