2015-07-11 304 views
0

我無法評估Eclipse Eclipse Kepler。 日誌文件顯示「無法運行處理器錯誤」:*無法啓動eclipse「java.lang.LinkageError」

!SESSION 2015-07-11 17:27:36.405 ----------------------------------------------- 
eclipse.buildId=4.3.0.I20130605-2000 
java.version=1.7.0_45 
java.vendor=Oracle Corporation 
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR 
Framework arguments: -product org.eclipse.epp.package.standard.product -pluginCustomization D:\NVPACK\eclipse\nvpref.ini 
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.standard.product -pluginCustomization D:\NVPACK\eclipse\nvpref.ini 

!ENTRY org.eclipse.e4.ui.workbench 2 0 2015-07-11 17:27:41.577 
!MESSAGE Could not run processor 
!STACK 0 
org.eclipse.e4.core.di.InjectionException: java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "org/eclipse/e4/core/contexts/ContextFunction" 
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63) 
    at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243) 
    at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:220) 
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:107) 
    at org.eclipse.e4.ui.internal.workbench.ModelAssembler.runProcessor(ModelAssembler.java:229) 
    at org.eclipse.e4.ui.internal.workbench.ModelAssembler.processModel(ModelAssembler.java:88) 
    at org.eclipse.e4.ui.internal.workbench.ResourceHandler.loadMostRecentModel(ResourceHandler.java:219) 
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.loadApplicationModel(E4Application.java:395) 
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:238) 
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:581) 
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) 
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) 
    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:354) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:606) 
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) 
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) 
    at org.eclipse.equinox.launcher.Main.run(Main.java:1450) 
    at org.eclipse.equinox.launcher.Main.main(Main.java:1426) 
Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "org/eclipse/e4/core/contexts/ContextFunction" 
    at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.getHandler(HandlerServiceImpl.java:53) 
    at org.eclipse.ui.internal.commands.CommandPersistence.readCommandsFromRegistry(CommandPersistence.java:210) 
    at org.eclipse.ui.internal.commands.CommandPersistence.reRead(CommandPersistence.java:505) 
    at org.eclipse.ui.internal.CommandToModelProcessor.process(CommandToModelProcessor.java:74) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:606) 
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56) 
    ... 26 more 

這是很煩人的,因爲我需要完成的工作的一個重要部分。 我搜索了互聯網,但似乎並沒有太多關於這個問題。

任何想法? 感謝您的幫助

+1

我認爲你有一個腐敗的Eclipse。從官方網站下載最新的一個。 – m0skit0

+0

我下載了一個正式的Eclipse ..這是工作到現在..我不知道會發生什麼 – saloua

+0

我的意思是再次下載。 99%這是一個腐敗的Eclipse安裝。 – m0skit0

回答

2

重新安裝肯定會工作,但它似乎對我來說是一個大斧頭。

我發現我的工作是找到其中一個org.eclipse.e4.core*包。很可能他們將在plugins目錄中。然後只需逐個刪除它們,然後重新嘗試加載Eclipse。一旦Eclipse啓動,您可以根據需要重新安裝特定的插件。但至少你會保留所有的項目和其他設置。

0

我有同樣的問題。

感謝ilya1725我發現/plugins/org.eclipse.e4.core.contexts_1.3.100.v20140407-1019是造成這種情況。刪除後,eclipse再次啓動,無需重新安裝。

+0

不要忘記接受ilya1725的回答。 – AceFunk