2012-07-11 21 views
4

我嘗試樣本插件導出爲日食每次我嘗試運行產品我碰到下面的錯誤時代的產物,但:出口作爲產品插件:毋須申請ID已發現

!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

您是否在插件中創建.product文件並將其導出爲產品? – gamerson 2012-07-11 05:58:40

+0

類似的問題被問到這裏: http://stackoverflow.com/questions/11426346/exporting-a-plugin-as-a-product-no-application-id-has-been-found – Umme 2014-04-03 11:34:22

回答

2

問題是因爲我忘了將我的插件添加到依賴關係。我剛剛從org.eclipse中添加了所需的插件,但我也應該使用自己的插件。

6

相關性問題;轉到「運行 - >運行配置...」,選擇「插件」選項卡,然後單擊「添加Reuired插件」按鈕

+1

你知道哪個插件需要添加? – pgreen2 2012-11-29 04:40:45

+0

我面臨類似的問題。但是,當我通過SWTBot(Eclipse用戶界面的功能/單元測試庫:www.eclipse.org/swtbot)運行產品時,它將運行而不會拋出這些錯誤。 在Dependencies選項卡中打開產品文件並按下'Add Required Plugins' ...如果有任何缺失的依賴關係,Eclipse會爲您添加它。如果您正在使用某個版本控制系統,則比較.product文件以查看缺少的依賴關係。 運行產品 這解決了我的問題 Eclipse版本:Helios或3.6,Win 32 – Vikram 2013-04-22 20:14:54