2013-04-30 112 views
0

我剛剛在Eclipse Juno中安裝了Jboss工具(Juno)插件,在安裝後我重新啓動以獲取更改,但從那時起它不打開IDE。它在日誌文件中存儲了以下錯誤。無法打開Eclipse Juno IDE

java.lang.RuntimeException: Application "org.eclipse.ui.ide.workbench" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.datatools.connectivity.console.profile.StorageFileEditor, org.eclipse.e4.ui.workbench.swt.E4Application, org.eclipse.e4.ui.workbench.swt.GenTopic, org.eclipse.equinox.app.error, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.EclipseGenerator, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.repository.metadataverifier, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.jdt.apt.core.aptBuild, org.eclipse.pde.junit.runtime.uitestapplication, org.eclipse.pde.junit.runtime.legacytestapplication, org.eclipse.pde.junit.runtime.coretestapplication, org.eclipse.pde.junit.runtime.coretestapplicationnonmain, org.eclipse.pde.junit.runtime.nonuithreadtestapplication, org.eclipse.wst.server.preview.preview, org.eclipse.ant.ui.antRunner, org.eclipse.emf.codegen.CodeGen, org.eclipse.emf.codegen.JMerger, org.eclipse.emf.codegen.ecore.Generator, org.eclipse.emf.importer.ecore.Ecore2GenModel, org.eclipse.emf.importer.java.Java2GenModel, org.eclipse.emf.importer.rose.Rose2GenModel, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.jdt.core.JavaIndexer, org.eclipse.pde.build.Build, org.eclipse.wst.jsdt.core.JavaCodeFormatter, org.jboss.tools.vpe.browsersim.eclipse.application. 
    at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248) 
    at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29) 
    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(NativeMethodAccessorImpl.java:39) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    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) 

請幫我一把。

回答

1

Eclipse應用程序在插件中提供。 「org.eclipse.ui.ide.workbench」應用程序是Eclipse IDE的入口點,它與Java或C程序中的主要方法相似。 Eclipse IDE在插件「org.eclipse.ui.ide.application」中有它的應用程序,主程序入口點。此插件聲明插件xml中的IDE應用程序:

<extension id="org.eclipse.ui.ide.workbench" point="org.eclipse.core.runtime.applications"> 
    <application> 
     <run class="org.eclipse.ui.internal.ide.application.IDEApplication"></run> 
    </application> 
</extension> 

您的消息表明無法找到該應用程序。 有很多可能的原因。 Eclipse插件聲明依賴關係,Eclipse是一個依賴插件的大圖。一個無效的插件導致其他插件,這需要這個特殊的無效插件,也變得無效。這很可能發生在你身上。出於某種原因,你的安裝行爲錯誤並被刪除,以某種奇怪的方式殺死或使你的插件圖失效。 Eclipse應用程序因此未被公開,因此Eclipse拒絕啓動。

解決這個問題通常非常繁瑣,您必須找出哪個插件被丟棄並損壞了整個IDE。更簡單的是簡單地使用全新的安裝(使用全新的下載並在頂部安裝插件)。

0

嘗試用-clean啓動eclipse。如果這沒有幫助,也可以從工作區中刪除.metadata。我會創建它的備份只是爲了確保這會刪除您的自定義設置。

+0

Thanq重播。我已經嘗試使用乾淨的命令在這種情況下,它也給出了同樣的錯誤,我試圖通過刪除.metadata文件,即使沒有用。在指向工作空間之前單擊eclipse.exe時會出現此錯誤。 – NARENDRA 2013-04-30 08:56:30

+1

我幾天前與另一個插件有同樣的問題。我通過提取乾淨的eclipse來「解決」它,並重新安裝了我需要的插件。你可以花費數天的時間嘗試調試插件的問題... – Devolus 2013-04-30 09:10:45