Eclipse Failure At Startup

I have had Eclipse 3.2.x crash on me. It seems to freeze on the splash screen. After waiting for a long time, I looked at the log and one of the message says: “A workspace crash was detected. The previous session did not exit normally.”.

I tried to relaunch Eclipse with an option -clean

$ /usr/lib/eclipse/eclipse -clean

But no luck. Reinstall Eclipse is not the better choice for me. Then, I come up with a solution is to reconfigure my workspace. I’ve to renamed my .metadata folder into a different name ( .metadata_bak for example, we will used it later ) and start Eclipse again. It will asked you to choose a workspace. I choose my current folder (current workspace) and it will create a new .metadata folder. After that, I copied old preferences settings into the new one.

cp .metadata_bak/.plugins/org.eclipse.core.runtime/.settings/* .metadata/.plugins/org.eclipse.core.runtime/.settings/

Oh! This is not finish yet. Next, is to import existing projects. By doing this, Eclipse will never see our existing projects. Then, We’ve to import it. Go to File -> Import .. -> General -> Existing projects and Select Root as our current workspace folder. Select all projects & click Finish.

This is the quickest fix that I can think. If you’ve better solution, please feel free to comment.

8 Responses to “Eclipse Failure At Startup”

  1. I couldn’t find a better solution, so thanks Sumardi, your post saved me a lot of hassle!

  2. I had a similar problem, try removing the .metadata/.plugins/org.eclipse.core.resources/.snap file

  3. Your suggestion help me too, just deleting the .snap file was not enough. Thanks for the tip!

  4. Thanks for the post Sumardi. Your instructions are clear and they worked for me. I’m so glad you made the effort to record your solution.

  5. Thank you very much! It worked for me too.

  6. Thanks for the fix; I was able to quickly recover. I believe my issue was due to something within my .plugins folder. I copied them over to the new .metadata folder and the same issue happened again. I just created a new .metadata folder and imported my projects. Issue solved!

  7. my eclipse crashed and I did the same, but It does not work for me. The IDE opens up but most menu items are either disabled or not working. I am feeling screwed up :(. any suggestions would be appreciated. Thanks

  8. Ok it has started working now for no apparent reason :)..anyway, thanks for the above tips

Leave a Reply