4

サンプル プラグインを 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)
4

2 に答える 2

6

依存関係の問題; 「Run->Run Configurations...」に移動し、「Plug-ins」タブを選択し、「Add Reuired Plugin」ボタンをクリックします

于 2012-11-29T04:16:50.400 に答える
2

問題は、Iv'eがプラグインを依存関係に追加するのを忘れたためです。org.eclipseから必要なプラグインを追加しましたが、独自のプラグインも追加する必要があります。

于 2012-07-11T09:55:51.960 に答える