I have a problem each time I close Eclipse (Helios Release 1 in Windows Vista). This is the error log:
每次关闭Eclipse时,我都会遇到一个问题(在Windows Vista中,Helios Release 1)。这是错误日志:
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)
在尝试保存工作台状态时发生了问题。问题发生在保存。保存变量和容器时的问题C:\用户…(工作区dir).... metadata.plugins \ org.eclipse.jdt.core \ variablesAndContainers。dat(拒绝访问)
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.
当我开始使用Eclipse时,我曾经将工作区放在不同的目录中。然后我把它移到了另一个地方。在加载工作区时,它是正确的。
Any ideas how to fix it?
有什么好办法吗?
5 个解决方案
#1
14
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.
要修复,请转到您的工作区并删除.metadata文件夹。重新启动eclipse并将其指向旧工作区所在的位置,并使用File -> New加载项目。
You can only load one by one but at least it solved the issues
你只能一个一个加载,但至少它解决了问题
#2
2
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.
现在看来问题已经解决了。我以一种非传统的方式(在我看来)做到了这一点。似乎有一个访问问题。Eclipse没有访问自己的.dat文件。可能是因为一些windows-eclipse的误解。我试图删除出现错误的文件,Eclipse再次创建了这些文件。就这样,问题解决了。
#3
0
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
最好的方法是查看工作区/.metadata/。记录一下Eclipse哪里出了问题。也许只有一个小文件可以杀死或解锁。因此,您不需要从头导入所有以前的项目
#4
0
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.
我将.project文件解隐藏,并为系统、管理员等授予文件权限。
My problem was solved
我的问题解决了
#5
0
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.
我不确定问题是否相同,但在我的例子中是windows卫士中的受控文件夹访问,这是我错误的来源。
I turned off in the Virus @ Thread protection settings and restarted eclipse and was OK.
我关闭了病毒@线程保护设置,重新启动eclipse,一切正常。
#1
14
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.
要修复,请转到您的工作区并删除.metadata文件夹。重新启动eclipse并将其指向旧工作区所在的位置,并使用File -> New加载项目。
You can only load one by one but at least it solved the issues
你只能一个一个加载,但至少它解决了问题
#2
2
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.
现在看来问题已经解决了。我以一种非传统的方式(在我看来)做到了这一点。似乎有一个访问问题。Eclipse没有访问自己的.dat文件。可能是因为一些windows-eclipse的误解。我试图删除出现错误的文件,Eclipse再次创建了这些文件。就这样,问题解决了。
#3
0
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
最好的方法是查看工作区/.metadata/。记录一下Eclipse哪里出了问题。也许只有一个小文件可以杀死或解锁。因此,您不需要从头导入所有以前的项目
#4
0
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.
我将.project文件解隐藏,并为系统、管理员等授予文件权限。
My problem was solved
我的问题解决了
#5
0
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.
我不确定问题是否相同,但在我的例子中是windows卫士中的受控文件夹访问,这是我错误的来源。
I turned off in the Virus @ Thread protection settings and restarted eclipse and was OK.
我关闭了病毒@线程保护设置,重新启动eclipse,一切正常。