导出Eclipse RCP产品

时间:2015-03-17 11:06:15

标签: eclipse rcp

我正在尝试创建Eclipse RCP应用程序;我导出了这个应用程序但是当我尝试打开我的Eclipse RCP产品时,我在记录器文件中收到了这个问题:

  

!SESSION 2015-03-17 12:01:08.995 eclipse.buildId = unknown   java.version = 1.7.0_71 java.vendor = Oracle Corporation BootLoader   常量:OS = win32,ARCH = x86_64,WS = win32,NL = en_US命令行   参数:-os win32 -ws win32 -arch x86_64

     

!ENTRY org.eclipse.osgi 4 0 2015-03-17 12:01:10.027!MESSAGE   应用程序错误!STACK 1 java.lang.RuntimeException:Application   " test.rcp.application"在注册表中找不到。该   应用程序是:   org.eclipse.e4.ui.workbench.swt.E4Application,   org.eclipse.e4.ui.workbench.swt.GenTopic,   org.eclipse.equinox.app.error。在   org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)     在   org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)     在   org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)     在   org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)     在   org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)     在   org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)     在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:606)at   org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)at at   org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)at at   org.eclipse.equinox.launcher.Main.run(Main.java:1465)

任何人都可以帮助我吗?

1 个答案:

答案 0 :(得分:2)

如果这是Eclipse e4应用程序,则在xxx.product配置文件中将org.eclipse.e4.ui.workbench.swt.E4Application指定为应用程序。

使用您在RCP plugin.xml中定义的产品。