score:165

Accepted answer

It seems to fail when trying to restore the workspace.

Try:

  1. Open a new workspace. If it has been set to use a default, go to <Eclipse_root_dir>\configuration\.settings\org.eclipse.ui.ide.prefs and set SHOW_WORKSPACE_SELECTION_DIALOG to true

  2. Try deleting <workspace>/.metadata/.plugins/org.eclipse.core.resources/.snap

  3. As suggested in a comment: If using Eclipse 4, you may have to delete the file .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi aswell.

score:0

Find your installations eclipse\configuration.settings folder

edit org.eclipse.ui.ide.prefs to show workspace=true

Create a new workspace Run eclipse again Import your project from previous workspace

score:0

Erase the old .metadata folder from the workspace and copy the new one that was created somewhere I chosen the first time.

Background: I had a similar problem and it started when I uninstalled the eclipse and installed it again, so at the first time I created a new workspace, I work without any problem, then another time I chose the old workspace, so when I tried to open it, it used the old .metadata folder.

score:0

My problem was I somehow installed 32-bit Java and screwed up my environment variables so the jdk1.7.0_10 wasn't in PATH any more. Fixed it from the accepted answer here, following the poster's screenshot.

score:0

Please make sure you have the right bit version of Java. I had 32 bit on 64 bit computer. Do verify your java version here - https://www.java.com/en/download/installed.jsp

Proved to be very handy when I installed the right version!

score:1

Summary
Flash Builder or Eclipse won't start. This happens when it is shut down incorrectly (like when your laptop battery dies).

Solution
Delete the workspace .snap file.

Steps
First, show hidden files. You can do this by opening Terminal and setting Finder's show all files property to true. You must also restart Finder for the changes to take effect.

defaults write com.apple.Finder AppleShowAllFiles TRUE
killall Finder

Delete the Eclipse snap file. To do this navigate to your Eclipse workspace. In that directory you'll find the hidden .metadata directory. Navigate to ".metadata/.plugins/com.eclipse.core.resources/". In that directory you'll see a file called ".snap". Make sure Eclipse is closed (not open and not stuck on the splash screen). Next delete the ".snap" file.

enter image description here

Restart Eclipse. Once it is working set the hidden folders back to hidden with:

defaults write com.apple.Finder AppleShowAllFiles FALSE
killall Finder

score:2

Make sure you have the jdk installed. If it persists try downloading a new copy of eclipse.

score:2

I tried removing the

org.eclipse.core.resources from safe table, restart eclipse, you should be able to see all the configuration, but you won't be able to see your project, that you might have to import.

Cut org.eclipse.core.resources from safe table

Restart Eclipse then copy back your the org.eclipse.core.resources

and then restart.(but you have to import the project for sure, ) from C:\Workspace_BR-12-Q3-MPSERS-REFORM\.metadata\.plugins\org.eclipse.core.resources\.safetable

This seems lie it will happen when you have multiple trees in your workspace.

score:2

I have to re install jre and it's work!, nothing else.

score:3

I had the same problem of not being able to start eclipse after a bad crash in windows and deleting the workspace settings did not help. Reinstalling eclipse did not help. I had to uninstall and install Java and I could run Eclipse again.

score:8

There is a .metadata directory in your workspace. Within it, there is a file named .log - if the startup process does not fail very early, it should contain useful error messages.

score:13

This is my solution:

  • delete the file .snap located inside:

    <workspace>/.metadata/.plugins/org.eclipse.core.resources/

  • delete the file: workbench.xmi located inside:

    <workspace>.metadata/.plugins/org.eclipse.e4.workbench/

Then you will not have problems accessing to your Eclipse.

My old solution:

This problem is caused mainly by a corrupt workspace, i had the choice of create a new workspace but i had the projects linked to Subversion, so i needed preferently keep the same projects inside my original workspace, now i want to expose my solution:

inside the workspace into the folder .metadata, delete all the files inside:

enter image description here

then import again your projects File -> Import -> Existing Projects into Workspace

enter image description here


Related Query

More Query from same tag