在注册表中找不到应用程序“org.eclipse.ui.ide.workbench”

时间:2013-07-12 12:34:16

标签: registry rcp

我正在尝试按照here完成构建RCP应用程序。

可悲的是,我收到的错误消息对我来说没什么意义。也许你们其中一个人有一个想法。

 !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)

4 个答案:

答案 0 :(得分:3)

好的,已经完成。我必须将'org.eclipse.core.runtime.applications'添加到我的扩展程序中。

答案 1 :(得分: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实例。通过手动添加它,问题就消失了。

答案 2 :(得分:0)

有关错误消息

  

java.lang.RuntimeException:Application" org.eclipse.ui.ide.workbench"   无法在注册表中找到。

我找到的最简单的解决方案是添加名为'org.eclipse.equinox.simpleconfigurator'的插件。这适用于最新的eclipse版本(在我的案例中是Neon.3 v4。*)。

答案 3 :(得分: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将自动选择所需的所有插件。