Eclipse hanging on startup, Repair Corrupt Workspace

 

Eclipse can hang on start up due to various reasons like system crash , Updating a plugin etc. which corrupts the workspace.

You can check .log file (in your <workspace>/.metadata directory) for error logs like

!MESSAGE The workspace exited with unsaved changes in the previous session;
refreshing workspace to recover changes

 

Here are few quick fixes that may work (Make a backup of your Workspace and Try each step independently)

  • Removing .snap File
  1. Open <workspace>\.metadata\.plugins\org.eclipse.core.resources directory
  2. Remove .snap file in the directory
  3. Restart Eclipse

 

  • Remove .indexes Folder
  1. Remove the <workspace>\.metadata\.plugins\org.eclipse.core.resources\.root\.indexes directory
  2. Restart Eclipse

 

  • Remove “org.eclipse.ui.workbench”  folder
  1. Open <workspace>\.metadata\.plugins directory
  2. Remove “org.eclipse.ui.workbench” folder
  3. Restart Eclipse

 

If nothing works then you can start Eclipse with -clean option and import each project into new workspace.

 

[hr]

5 thoughts on “Eclipse hanging on startup, Repair Corrupt Workspace”

  1. I had to delete the entire org.eclipse.core.resources directory to make it work and then re-import my projects (eclipse settings and run configurations were still there).

    regarding your last point: You can also just re-name the workspace directory and Eclipse will create a new one at the old location

    1. Thanks much! This worked for me after receiving the log error: Problems occurred when invoking code from plug-in: “org.eclipse.e4.ui.workbench.swt”.

Leave a Reply

Your email address will not be published. Required fields are marked *