Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse hangs on startup [duplicate]

I have problem with running my Eclipse. I tried 3.7, 4.2 and 4.3 versions with java 6 and java 7. Nothing can help me. It shows me popup screen but it doesn't start to load( I dont have chance to choose workspace). Starting it with -debug -console parameters shows that it stops running in this moment:

Time to load bundles: 10
Starting application: 6374
osgi> 

I have started JVisualVM but I cannot observe anything special. There are no deadlocks etc.

Edit

My observations were to deep... After ~60s pid of eclipse is dead.

Edit 2

Now it stops on

Time to load bundles: 8
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.
Starting application: 3557

Edit 3

I have managed to start it but only with -clean parameter and with choosing workspace from command line -data parameter.

like image 341
nervosol Avatar asked Aug 26 '13 18:08

nervosol


4 Answers

Remove .snap (or .markers in Indigo) from .metadata.plugins\org.eclipse.core.resources.projects\\

like image 118
Shakti Malik Avatar answered Oct 22 '22 10:10

Shakti Malik


I've had exactly the same problem and could solve it using the answer here https://stackoverflow.com/a/5504530/1275767 which works by moving the projects out of the workspace and back in again after Eclipse has been started and stopped.

Starting it with -clean -data started eclipse but whenever I switched the workspace using the eclipse gui it wouldn't load.

like image 42
rtack Avatar answered Oct 22 '22 09:10

rtack


With Eclipse Kepler, you need to remove all of the .snap files within the .plugins directory, i.e. C:...\eclipse-jee-kepler-R-win32.metadata.plugins. Once I did that, everything started up fine. (NOTE: There are about 10 *.snap files total)

like image 1
chico1198 Avatar answered Oct 22 '22 10:10

chico1198


Couldn't solve these problems with any of the above options on mars or neon. Downgraded to Luna, which also happens to be the version that I had deleted previously. This worked for me.

like image 1
DheerajV Avatar answered Oct 22 '22 10:10

DheerajV