RCP 工程启动报No application id has been found 的错误 , 错误信息如下,查看之后 , 发现主要的问题是 “MESSAGE Missing required bundle” ,一些eclipse 必要的包不能解析。
解决方案:
打开.product文件 , 切换到dependencies 项,点击 Add required plug-ins , 保存之后再切换到 overview 运行 。
!ENTRY org.eclipse.osgi 2 0 2014-06-10 14:35:27.130
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:!SUBENTRY 1 org.eclipse.osgi 2 0 2014-06-10 14:35:27.130
!MESSAGE Bundle initial@reference:file:plugins/org.apache.lucene.analysis_2.9.1.v201101211721.jar/ was not resolved.
!SUBENTRY 2 org.apache.lucene.analysis 2 0 2014-06-10 14:35:27.130
!MESSAGE Missing required bundle org.apache.lucene.core_[2.9.1,3.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-06-10 14:35:27.130
!MESSAGE Bundle initial@reference:file:plugins/org.apache.lucene_2.9.1.v201101211721.jar/ was not resolved.
!SUBENTRY 2 org.apache.lucene 2 0 2014-06-10 14:35:27.131
!MESSAGE Missing required bundle org.apache.lucene.core_[2.9.1,3.0.0).
!ENTRY org.eclipse.osgi 2 0 2014-06-10 14:35:27.140
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-06-10 14:35:27.141
!MESSAGE Bundle org.eclipse.help.webapp_3.6.1.r37_20110929 [4] was not resolved.
!SUBENTRY 2 org.eclipse.help.webapp 2 0 2014-06-10 14:35:27.141
!MESSAGE Missing required bundle org.eclipse.help.base_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-06-10 14:35:27.142
!MESSAGE Bundle org.apache.lucene_2.9.1.v201101211721 [7] was not resolved.
!SUBENTRY 2 org.apache.lucene 2 0 2014-06-10 14:35:27.142
!MESSAGE Missing required bundle org.apache.lucene.core_[2.9.1,3.0.0).
!SUBENTRY 2 org.apache.lucene 2 0 2014-06-10 14:35:27.142
!MESSAGE Missing optionally required bundle org.apache.lucene.analysis_[2.9.1,3.0.0).
!SUBENTRY 2 org.apache.lucene 2 0 2014-06-10 14:35:27.143
!MESSAGE Missing optionally required bundle org.apache.lucene.highlighter_[2.9.1,3.0.0).
!SUBENTRY 2 org.apache.lucene 2 0 2014-06-10 14:35:27.143
!MESSAGE Missing optionally required bundle org.apache.lucene.memory_[2.9.1,3.0.0).
!SUBENTRY 2 org.apache.lucene 2 0 2014-06-10 14:35:27.144
!MESSAGE Missing optionally required bundle org.apache.lucene.queries_[2.9.1,3.0.0).
!SUBENTRY 2 org.apache.lucene 2 0 2014-06-10 14:35:27.144
!MESSAGE Missing optionally required bundle org.apache.lucene.snowball_[2.9.1,3.0.0).
!SUBENTRY 2 org.apache.lucene 2 0 2014-06-10 14:35:27.144
!MESSAGE Missing optionally required bundle org.apache.lucene.spellchecker_[2.9.1,3.0.0).
!SUBENTRY 2 org.apache.lucene 2 0 2014-06-10 14:35:27.145
!MESSAGE Missing optionally required bundle org.apache.lucene.misc_[2.9.1,3.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-06-10 14:35:27.145
!MESSAGE Bundle org.eclipse.help.ui_3.5.101.r37_20110819 [21] was not resolved.
!SUBENTRY 2 org.eclipse.help.ui 2 0 2014-06-10 14:35:27.145
!MESSAGE Missing required bundle org.eclipse.help.base_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-06-10 14:35:27.146
!MESSAGE Bundle org.eclipse.help.base_3.6.2.v201202080800 [27] was not resolved.
!SUBENTRY 2 org.eclipse.help.base 2 0 2014-06-10 14:35:27.146
!MESSAGE Missing required bundle org.apache.lucene_[2.9.0,3.0.0).
!SUBENTRY 2 org.eclipse.help.base 2 0 2014-06-10 14:35:27.146
!MESSAGE Missing required bundle org.apache.lucene.analysis_[2.9.0,3.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-06-10 14:35:27.147
!MESSAGE Bundle org.apache.lucene.analysis_2.9.1.v201101211721 [33] was not resolved.
!SUBENTRY 2 org.apache.lucene.analysis 2 0 2014-06-10 14:35:27.147
!MESSAGE Missing required bundle org.apache.lucene.core_[2.9.1,3.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-06-10 14:35:27.147
!MESSAGE Missing required bundle org.eclipse.help.ui_3.4.0.
!MESSAGE Missing required bundle org.eclipse.help.webapp_3.4.0.
!ENTRY org.eclipse.osgi 4 0 2014-06-10 14:35:27.150
!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:601)
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)