【问题标题】:Eclipse RCP: Unresolved RequirementEclipse RCP:未解决的需求
【发布时间】:2015-08-16 00:06:12
【问题描述】:

我在eclipse中有两个本地插件项目,都是maven项目。

  1. AvgPowerTool

  2. AvgPowerCommon

AvgPowerTool 依赖于 AvgPowerCommon(它使用来自 AvgPowerCommon 的类)。

当我运行应用程序并尝试从 AvgPowerCommon 实例化一个类时,应用程序退出并出现异常:

java.lang.RuntimeException: No application id has been found.

上面,在我看到的日志中:

!ENTRY org.eclipse.equinox.app 0 0 2015-06-02 12:08:10.113
!MESSAGE Product AvgPowerTool.product could not be found.

!ENTRY AvgPowerTool 2 0 2015-06-02 12:08:10.164
!MESSAGE Could not resolve module: AvgPowerTool [208]
  Unresolved requirement: Require-Bundle: AvgPowerCommon

这是 AvgPowerTool 的 plugin.xml 中所需插件的外观:

我能做些什么来解决这个问题?

谢谢。

【问题讨论】:

  • 向我们展示plugin.xml的全部内容
  • 如果您使用“运行 > Eclipse 应用程序”运行它,请检查“运行配置”并确保包含您的两个插件
  • 谢谢,在运行配置下添加插件解决了它。如果您添加答案,我会标记它。

标签: eclipse dependencies rcp


【解决方案1】:

使用“运行 > Eclipse 应用程序”运行 RCP 时,您需要确保在应用程序的“运行配置”中检查了所有必需的插件(在插件选项卡上)。

如果您随后使用 xxx.product 文件构建 RCP,则必须在产品文件中列出所有必需的插件(或功能)。

【讨论】:

    猜你喜欢
    • 2019-03-13
    • 2016-10-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-03
    • 1970-01-01
    • 2017-02-01
    相关资源
    最近更新 更多