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.