Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse wont run: \.metadata\.log error

I was working on an Android project and after restarting the computer, eclipse won't run. It's throwing the .metadata.log file error.

like image 883
buggydroid Avatar asked Aug 13 '12 18:08

buggydroid


4 Answers

Go to ~\.metadata\.plugins\org.eclipse.core.resources You will find .snap file. Just delete it. Relaunch Eclipse.

It will work perfectly.

like image 102
umirza47 Avatar answered Oct 18 '22 19:10

umirza47


Try using a new workspace. To force the workspace window prompt you need to change the settings in <Eclipse_root_dir>\configuration\.settings\org.eclipse.ui.ide.prefs and set SHOW_WORKSPACE_SELECTION_DIALOG to true.

Source: Eclipse Community Forums

like image 32
Nathan Avatar answered Oct 18 '22 19:10

Nathan


You don't have to delete your .metadata folder because in this way it's going to delete your preferences about your workspace. However delete snap files that exist inside your .metadata folder as well as the .lock files.

Also after you do this don't forget to do a clean start of eclipe

./eclipse -clean
like image 33
mikrohelen Avatar answered Oct 18 '22 21:10

mikrohelen


I have also some issues while running Eclipse (with Mercurial and Aptana Plugins).

If you want to find out what is causing this problem backup .metadata folder and "incrementally" delete folders in <your_workspace_folder>/.metadata/plugins/. If you delete some folder and Eclipse will run you'll knew that this is the problem.

For Mercurial I delete workspace\.metadata\.plugins\org.eclipse.core.resources\snap and for Aptana workspace\.metadata\.plugins\org.eclipse.core.resources\.safetable

If you don't care if your preferences get lost simply delete .metadata folder and run Eclipse again - it'll create new .metadata folder.

like image 3
Xeon Avatar answered Oct 18 '22 20:10

Xeon