2016-08-19 220 views
1

我是Eclipse RCP的新手。我正在尝试在Eclipse Juno上设置一个RCP项目。
导入所有的插件到我的工作区后,我收到以下错误试图运行应用程序:Eclipse RCP:无法在注册表中找到应用程序“org.eclipse.ui.ide.workbench”

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

插件org.eclipse.ui.ide需要在您的启动配置中。

在菜单中去:运行>运行配置...

Eclipse Launch Configuration

如果你不想启动Eclipse IDE,但是你自己的应用程序,你需要改变“主”启动“运行应用程序”选项卡。
创建您自己的应用程序搜索org.eclipse.core.runtime.applications扩展点。