2013-07-12 62 views
4

我試圖按照here那樣構建RCP應用程序。在註冊表中找不到應用程序「org.eclipse.ui.ide.workbench」

不幸的是我得到一個錯誤信息,這對我來說沒有多大意義。也許你們有一個想法。

!SESSION 2013-07-12 14:31:25.331 ----------------------------------------------- 
eclipse.buildId=unknown 
java.version=1.7.0_07 
java.vendor=Oracle Corporation 
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE 
Framework arguments: -application org.eclipse.ui.ide.workbench 
Command-line arguments: -application org.eclipse.ui.ide.workbench -data C:\Users\ccoen\Desktop\workspace/../runtime-de.vogella.rcp.editor.example.application -dev file:C:/Users/ccoen/Desktop/workspace/.metadata/.plugins/org.eclipse.pde.core/de.vogella.rcp.editor.example.application/dev.properties -os win32 -ws win32 -arch x86 -consoleLog 

!ENTRY org.eclipse.osgi 4 0 2013-07-12 14:31:25.721 
!MESSAGE Application error 
!STACK 1 
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.equinox.app.error. 
    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:344) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 
    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:622) 
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) 
    at org.eclipse.equinox.launcher.Main.run(Main.java:1410) 
    at org.eclipse.equinox.launcher.Main.main(Main.java:1386) 

回答

3

好吧,這樣做了。我不得不向我的擴展添加'org.eclipse.core.runtime.applications'。

1

爲我工作時開發Eclipse插件(不是一個獨立的RCP應用程序),並獲得java.lang.RuntimeException: Application "org.eclipse.ui.ide.workbench" could not be found in the registry.例外另一種方法(我發現谷歌搜索這個錯誤時,該SO線程,並且還發現了以下) :
https://www.eclipse.org/forums/index.php?t=msg&th=155457&goto=820447&#msg_820447

你必須去「運行配置...」和「插件」選項卡上,您也可以手動檢查org.eclipse.ui.ide.application插件。這就是全部(或者你也需要org.eclipse.core.net,我不需要它)。

以前我點擊「添加所需的插件」,「驗證插件」,但在需要他們沒有標明這個插件,所以我得到這個異常的所有我想開始的時間一個新的Eclipse實例。通過手動添加它,問題就消失了。

0

有關錯誤消息

了java.lang.RuntimeException:應用 「org.eclipse.ui.ide.workbench」 無法在註冊表中找到。

我發現的最簡單的解決方案是添加名爲'org.eclipse.equinox.simpleconfigurator'的插件。這特別適用於最新的eclipse版本(在我的例子中是Neon.3 v4。*)。

0

解決在Eclipse這個問題最簡單的方法是:

-> Go to "Run" and select "Run Configurations" 
-> Go to "Plug-ins"-Tab and hit the "Add Required Plug-ins"-Button 
-> Than Apply! 

Eclipse會自動選擇所需要的所有插件。

相關問題