2012-11-07 134 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轉換爲不同的目錄,並複製我的老插件+捆綁文件夾到它解決了這個問題。