Eclipse RCP:Application" org.eclipse.ui.ide.workbench"在注册表中找不到

时间:2016-08-19 12:36:41

标签: eclipse eclipse-rcp

我是Eclipse RCP的新手。我正在尝试在Eclipse Juno上建立一个RCP项目 将所有插件导入我的工作区后,尝试运行该应用程序时出现以下错误:

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.e4.ui.workbench.swt.E4Application, org.eclipse.e4.ui.workbench.swt.GenTopic, org.eclipse.emf.mwe.core.WorkflowRunner, 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: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: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: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)

我可以知道如何解决此错误吗?

1 个答案:

答案 0 :(得分:1)

插件org.eclipse.core.runtime.applications需要处于启动配置中。

在菜单中转到:运行>运行配置...

Eclipse Launch Configuration

如果您不想启动eclipse IDE而是自己的应用程序,则需要更改" Main"启动选项卡"运行应用程序"。
要创建自己的应用程序搜索ChakraHost dateHost = new ChakraHost();扩展点。