views:

3991

answers:

4

I am using eclipse 3.4.1 Java EE under Vista. It seems to like getting stuck when building my workspace. Canceling the build doesn't seem to do anything as well.

Why is this happening and how do I fix the problem?

+1  A: 

You may want to take a look at How to report a deadlock. You may also want to check the Error view and/or the error log ([workspace]/.metadata/.log). If that doesn't help, you'll probably need to include more info about which plugins you have installed and which projects you have. Can you create a minimal workspace which reproduces the problem?

JesperE
the problem is intermittent so it gets really annoying. But ok, let's see if i can get more info about the problem.
seanlinmt
It is possible that just creating a clean workspace and importing the projects will solve the problem. It's worth a try in any event.
zvikico
+1  A: 

Some time it's very helpful to execute eclipse from command line with "-clean" parameter to enforce it produce clean up for workspace.

Artem Barger
AFAIK, it has nothing to do with the workspace. It cleans the plugins cache. You will notice that the startup time before asking for the workspace is much longer. After the workspace is specified, it is the same.
zvikico
Not only. It cleans eclipse cache in general, so every unrelated garbage within workspace will be wiped out as well.
Artem Barger
+2  A: 

I was able to fix this by deleting the contents of: .metadata\.plugins\org.eclipse.core.resources\projects

Use at your own risk, of course.

James Beninger
Worked for me too (BTW, to be safe you can always "mv yourContents yourContents.bak" instead of deleting them).
machineghost
A: 

I just had the same problem.

By using Task Manager to kill the build process and exiting Eclipse with no projects open, I was able to get back into Eclipse and clean the project without opening it. I then restarted Eclipse again,loaded my project and all OK.

SimpleSi