RCP 工程启动报No application id has been found 的错误

本文解决在使用Eclipse RCP工程启动时遇到的报错问题,具体为‘MESSAGEMissing required bundle’错误。通过调整.product文件中的dependencies设置并保存后重新运行,成功解决了无法解析的eclipse必要包问题。

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)






关于“no application license found错误,通常与软件的许可证文件或授权机制相关。该错误表明应用程序在启动时未能找到有效的许可证信息,这可能是由于许可证文件缺失、路径配置不正确、许可证格式不兼容或授权模块未正确初始化等原因造成的。 ### 错误常见原因及解决方法 1. **许可证文件缺失或路径错误** 应用程序可能依赖特定的许可证文件(如 `.lic` 文件)进行运行时验证。如果该文件不存在于指定目录,或者配置的路径不正确,则会导致此错误。 解决办法是确认许可证文件的存在,并确保其路径在配置中正确引用。 2. **环境变量或配置文件未设置许可证路径** 某些应用程序通过环境变量或配置文件(如 `license.properties` 或 `application.yml`)来定位许可证文件。若未正确设置这些参数,程序将无法加载许可证。 解决办法是在系统环境变量中添加许可证路径,或在配置文件中正确填写 `license.path` 等参数[^3]。 3. **许可证过期或无效** 如果使用的是试用版或商业版软件,许可证可能已过期或未正确激活。此时需要联系供应商获取新的许可证文件并替换旧文件。 4. **插件或模块未正确加载** 在某些基于插件架构的应用中(例如 Eclipse RCP 项目),如果缺少必要的插件或扩展模块,也可能导致许可证无法加载。 解决办法是检查插件依赖关系,确保所有必需的模块都已正确安装和启用[^3]。 5. **运行时权限不足** 在某些操作系统上,应用程序可能因权限不足而无法访问许可证文件所在的目录。此时应以管理员身份运行程序,或更改文件访问权限。 6. **代码中未正确处理许可证逻辑** 若为自定义许可证管理方案,需确保代码中调用了正确的加载函数,并对异常情况进行捕获和处理。例如: ```java try { LicenseManager.verifyLicense("path/to/license.lic"); } catch (LicenseNotFoundException e) { System.err.println("License file not found: " + e.getMessage()); // 处理找不到许可证的情况 } ``` 7. **第三方库或框架要求许可证** 某些第三方组件(如表引擎、图表库等)可能也需要各自的许可证文件。如果这些文件未正确部署,也会触发类似错误。 解决办法是查阅对应库的文档,确保其所需的许可证文件已正确放置。 ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值