2012-11-07 87 views
1

我已经在Eclipse中运行了我已安装功能的更新。现在Eclipse不会启动。我已经删除了.lock文件。我没有.snap文件。我已经重新安装并解压缩eclipse以替换当前的eclipse目录。下面是我使用-clean运行eclipse后的.log文件:无法在更新后启动Eclipse Juno

!SESSION 2012-11-07 10:11:05.302 ----------------- ------------------------------ eclipse.buildId = M20120914-1800 java.version = 1.7.0_02 java.vendor = Oracle公司BootLoader常量:OS = win32, ARCH = x86_64,WS = win32,NL = en_US框架参数:-product org.eclipse.epp.package.mobile.product命令行参数:-os win32 -ws win32 - arch x86_64 -product org.eclipse.epp.package.mobile.product -clean

!ENTRY org.eclipse.equinox.event 2 0 2012- 11-07 10:11:11.117!MESSAGE [SCR]找到具有重复名称的组件!详细信息:Component1: 组件[name = org.eclipse.equinox.event activate =激活 deactivate =停用modified =配置策略=可选 factory = null autoenable = true immediate = false实施 = org.eclipse.equinox.internal .event.EventComponent state = Unsatisfied properties = serviceFactory = false serviceInterface = [org.osgi.service.event.EventAdmin] references = null bundle =组件2:组件[name = org.eclipse.equinox.event activate = activate deactivate = deactivate modified = configuration-policy = optional factory = null autoenable = true immediate = false implement entation = org.eclipse.equinox.internal.event.EventComponent state = Unsatisfied properties = serviceFactory = false serviceInterface = [org.osgi.service.event.EventAdmin] references = null位于bundle = org.eclipse.equinox .event_1.2.200.v20120522-2049 [328]]

!ENTRY org.eclipse.equinox.p2.transport.ecf 2 0 2012-11-07 10:11:11.151!MESSAGE [SCR]找到与重复的名字! 详细信息:Component1:组件[name = org.eclipse.equinox.p2.transport.ecf activate =激活取消激活 =取消激活modified =配置策略=可选工厂= null autoenable = true立即= false执行= 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位于bundle = org.eclipse.equinox.p2.transport.ecf_1.0.0.v20111128-0624 [367]] Component2:Component [name = o rg.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位于bundle = org.eclipse.equinox.p2.transport中。ecf_1.0.100.v20120305-0333 [366]

ENTRY org.eclipse.e4.ui.workbench 4 0 2012-11-07 10:11:26.746 MESSAGE无法创建 类“org.eclipse .e4.core.commands.CommandServiceAddon'from bundle'268' !STACK 0 org.eclipse.e4.core.di.InjectionException: java.lang.ClassCastException:无法转换 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) 在 org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:185) 在 有机.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:105) 在 org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71) 在 有机.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) 在 org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) 在 org.eclipse.ui.internal.ide.application.IDEApplication.start( IDEApplication.java:124) at org.eclipse.eq uinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) 在 org.eclipse.core。 runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) 在 org.eclipse.core.runtime。 adaptor.EclipseStarter.run(EclipseStarter.java:180) 在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)维持在 sun.reflect.DelegatingMethodAccessorImpl.invoke sun.reflect.NativeMethodAccessorImpl.invoke(来源不明)(来源不明)在org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)at org.eclipse.equinox.launcher.Main.basicRun(Main。)(http://support.microsoft.com/kb/org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)at org.eclipse.equinox.launcher.Main.basicRun(Main。 org.eclipse.equinox.launcher.Main.run(Main.java:1438)at org.eclipse.equinox.launcher.Main.main(Main.java:1414)引发者: java。 lang.ClassCastException:无法投射 org.eclipse.core.commands.CommandManager至 org.eclipse.core.commands.CommandManager java.lang.Class.cast(Unknown Source) org.eclipse.e4.core。 internal.contexts.EclipseContext.get(EclipseContext.java:566) at org.eclipse.e4.core.commands.CommandServiceAddon。的init(CommandServiceAddon.java:30) 在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)维持在 sun.reflect.DelegatingMethodAccessorImpl.invoke(来源不明) sun.reflect.NativeMethodAccessorImpl.invoke(来源不明)在 的java .lang.reflect.Method.invoke(来源不明)在 org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56) ...... 27多个

有没有人看到这个错误并知道如何解决它?

谢谢

+1

将Eclipse Juno解压缩到不同的目录中,永远不会尝试再次更新Eclipse。 –

+0

如果您正在进行Android开发,那么您需要一段时间更新SDK。而当你这样做时,你还必须在Eclipse中更新ADT插件。没有解决这个问题。 –

+2

当然有。通过解压缩最新的Eclipse并添加ADT插件,在不同的目录中创建一个新的开发环境。压缩你的ADT Eclipse以防万一它被损坏。如果您的新环境出现问题,请将工作区复制到其他目录中,以便恢复环境。切勿更新正在运行的Eclipse开发环境。 –

回答

2

我最终被下载并解压缩Eclipse转换为不同的目录,并复制我的老插件+捆绑文件夹到它解决了这个问题。