nervosol nervosol - 4 years ago 156
Java Question

Eclipse hangs on startup

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.

Answer Source

I've had exactly the same problem and could solve it using the answer here http://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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download