Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse can't start after update

Tags:

eclipse

After the eclipse update, it can't start up again. Also, it has a warning to check the log. But I don't know how to fix this problem through the log. Following is the log.

!SESSION 2012-10-15 08:21:47.367 -----------------------------------------------
eclipse.buildId=M20120914-1800
java.version=1.7.0_01
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32
Command-line arguments:  -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.equinox.event 2 0 2012-10-15 08:21:48.459
!MESSAGE [SCR] Found components with duplicated names! Details: 
Component1 : Component[
    name = org.eclipse.equinox.event
    activate = activate
    deactivate = deactivate
    modified = 
    configuration-policy = optional
    factory = null
    autoenable = true
    immediate = false
    implementation = org.eclipse.equinox.internal.event.EventComponent
    state = Unsatisfied
    properties = 
    serviceFactory = false
    serviceInterface = [org.osgi.service.event.EventAdmin]
    references = null
    located in bundle = org.eclipse.equinox.event_1.2.100.v20110502 [270]
]
Component2: Component[
    name = org.eclipse.equinox.event
    activate = activate
    deactivate = deactivate
    modified = 
    configuration-policy = optional
    factory = null
    autoenable = true
    immediate = false
    implementation = org.eclipse.equinox.internal.event.EventComponent
    state = Unsatisfied
    properties = 
    serviceFactory = false
    serviceInterface = [org.osgi.service.event.EventAdmin]
    references = null
    located in bundle = org.eclipse.equinox.event_1.2.200.v20120522-2049 [89]
]  

!ENTRY org.eclipse.equinox.p2.transport.ecf 2 0 2012-10-15 08:21:48.474
!MESSAGE [SCR] Found components with duplicated names! Details: 
Component1 : Component[
    name = org.eclipse.equinox.p2.transport.ecf
    activate = activate
    deactivate = deactivate
    modified = 
    configuration-policy = optional
    factory = null
    autoenable = true
    immediate = false
    implementation = org.eclipse.equinox.internal.p2.transport.ecf.ECFTransportComponent
    state = Unsatisfied
    properties = {p2.agent.servicename=org.eclipse.equinox.internal.p2.repository.Transport}
    serviceFactory = false
    serviceInterface = [org.eclipse.equinox.p2.core.spi.IAgentServiceFactory]
    references = null
    located in bundle = org.eclipse.equinox.p2.transport.ecf_1.0.0.v20111128-0624 [275]
]
Component2: Component[
    name = org.eclipse.equinox.p2.transport.ecf
    activate = activate
    deactivate = deactivate
    modified = 
    configuration-policy = optional
    factory = null
    autoenable = true
    immediate = false
    implementation = org.eclipse.equinox.internal.p2.transport.ecf.ECFTransportComponent
    state = Unsatisfied
    properties = {p2.agent.servicename=org.eclipse.equinox.internal.p2.repository.Transport}
    serviceFactory = false
    serviceInterface = [org.eclipse.equinox.p2.core.spi.IAgentServiceFactory]
    references = null
    located in bundle = org.eclipse.equinox.p2.transport.ecf_1.0.100.v20120305-0333 [120]
]  

!ENTRY org.eclipse.core.resources 2 10035 2012-10-15 08:21:49.535
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.eclipse.e4.ui.workbench 4 0 2012-10-15 08:21:52.000
!MESSAGE Unable to create class 'org.eclipse.e4.core.commands.CommandServiceAddon' from bundle '53'
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.ClassCastException: Cannot cast org.eclipse.core.commands.CommandManager to org.eclipse.core.commands.CommandManager
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
    at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:859)
    at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:319)
    at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:253)
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:185)
    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:105)
    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:49)
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:254)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:557)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: java.lang.ClassCastException: Cannot cast org.eclipse.core.commands.CommandManager to org.eclipse.core.commands.CommandManager
    at java.lang.Class.cast(Unknown Source)
    at org.eclipse.e4.core.internal.contexts.EclipseContext.get(EclipseContext.java:566)
    at org.eclipse.e4.core.commands.CommandServiceAddon.init(CommandServiceAddon.java:30)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
    ... 27 more

Basically, it just a part in the log file. From here, I found some post and tried:

1) eclipse -clean 2) delete .snap 3) delete workbench.xmi 4) rename org.eclipse.core.resources etc..

Unfortunately, they are not work.

like image 519
John Avatar asked Oct 15 '12 01:10

John


People also ask

Why is my Eclipse not opening?

If you've "installed" Eclipse but are having trouble getting it to run, the most likely cause is that you have not correctly specified the JVM for it to run under. You may need to edit the eclipse. ini file. Another common mistake on Microsoft Windows is a mismatch between the "bittedness" of Eclipse and the JVM/JDK.

How do I fix Eclipse not responding?

If there is a project you earlier imported externally (outside of Workspace), that may cause this problem. If you can access Eclipse try to remove it. If you are getting the 'No responding at startup', then go delete the file at source. This will solve the problem.

How do I enable java 11 in Eclipse?

A Java 11 JRE is recognized by Eclipse for launching. It can be added from the Window > Preferences > Java > Installed JREs > Add... page. It can also be added from the Package Explorer using the project's context menu.

How do you solve incompatible JVM version 1.8 0_261 of the JVM is not suitable for this product version 11 or greater is required in Eclipse error?

If you're looking to resolve this without changing eclipse. ini file, just reinstall eclipse IDE. It can be the same version or newer one. I have reinstalled the same version and it's worked without issues, no needing of changing eclipse.

Are you getting below eclipse startup error?

Are you getting below eclipse startup error? A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No

How to fix eclipse application cannot start issue?

You have open eclipse.ini file and change -vm path to correct JDK location. In my case it’s /Library/Java/JavaVirtualMachines/jdk1.10.001.jdk/Contents/Home/bin. Now try restarting your eclipse by clicking eclipse.app icon and error should go away. Let me know if you face any issue starting Eclipse application.

How to fix eclipse keeps crashing on startup?

You have open eclipse.ini file and change -vmpath to correct JDK location. In my case it’s /Library/Java/JavaVirtualMachines/jdk1.10.001.jdk/Contents/Home/bin. Now try restarting your eclipse by clicking eclipse.app icon and error should go away.

What is Eclipse’s default Java version?

As my Eclipse’s eclipse.inifile had Java 9 by default as a VM. It failed to startup with above error message. How to find eclipse.ini file? Right click on Eclipse.appicon


3 Answers

go to

  1. Your installation path\configuration\org.eclipse.equinox.simpleconfigurator\
  2. Backup file bundle.info
  3. remove the duplicate entry for "org.eclipse.core.commands" from the file bundle.info I removed the entry with the lower version.

restart the eclipse with option -clean and you should be fine

like image 106
Ashish Avatar answered Sep 18 '22 21:09

Ashish


i have the same problem, after i updated my pydev.

i re-extract JUNO to my installation dir

problem solved

like image 27
Scott 混合理论 Avatar answered Sep 21 '22 21:09

Scott 混合理论


Try this:

Go into damaged workspace/.metadata and delete the .lock file.
Go to workspace/.metadata/.plugins/org.eclipse.core.resources and delete the .snap file.
Start Eclipse with the command eclipse -clean.
Eclipse should start now. After Eclipse has been started and has initialized and validated the workspace, close Eclipse.

like image 27
Bevor Avatar answered Sep 21 '22 21:09

Bevor