Problems occurred while trying to save the state of the workbench in Eclipse
Asked Answered
P

6

7

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?

Performative answered 8/2, 2011 at 23:29 Comment(0)
E
16

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

Embargo answered 11/6, 2012 at 20:6 Comment(1)
I just override the all workspace folder from my partner computer (with the .metadata). Delete the .metadata folder and import existing projects from workspace solved the problem. 10x!Izawa
P
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.

Performative answered 9/2, 2011 at 18:24 Comment(0)
I
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

Insubstantial answered 15/1, 2015 at 11:2 Comment(0)
P
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.

My problem was solved

Polytypic answered 19/2, 2015 at 23:38 Comment(0)
P
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.

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

Providence answered 22/1, 2018 at 8:19 Comment(0)
H
0

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!
Haskel answered 27/2, 2024 at 16:45 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.