我试图在eclipse中将样本插件导出为产品但每次尝试运行该产品时都会出现以下错误:
!SESSION 2012-07-11 10:17:35.813 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product test.product
Command-line arguments: -product test.product -data /home/arvin/workspace/sample/../runtime-test.product(5) -dev file:/home/arvin/workspace/sample/.metadata/.plugins/org.eclipse.pde.core/test.product (5)/dev.properties -os linux -ws gtk -arch x86_64 -consoleLog
!ENTRY org.eclipse.equinox.app 0 0 2012-07-11 10:17:36.351
!MESSAGE Product test.product could not be found.
!ENTRY org.eclipse.osgi 4 0 2012-07-11 10:17:36.395
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
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(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
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)
答案 0 :(得分:6)
依赖性问题;转到“运行 - >运行配置...”,选择“插件”选项卡,然后单击“添加需要的插件”按钮
答案 1 :(得分:2)
问题是因为我忘了将我的插件添加到依赖项中。我刚从org.eclipse添加了所需的插件,但我也应该使用自己的插件。