【问题标题】:Eclipse RCP new plug-in dependency unresolved requirementEclipse RCP 新插件依赖未解决需求
【发布时间】:2019-03-13 10:42:45
【问题描述】:

我正在学习 RCP 插件并尝试添加另一个插件作为依赖项。所以我从一个简单的 HelloWorld 应用程序开始并进行了测试,它工作正常。现在我通过导入外部 jar 文件创建了另一个插件,并将其添加为依赖于我的 HelloWorld 应用程序。现在,当我运行代码时,出现以下错误,

!ENTRY org.eclipse.equinox.app 0 0 2018-10-08 13:39:55.300
!MESSAGE Product com.be.tests.part1.product1 could not be found.

!ENTRY com.be.tests.part1 4 0 2018-10-08 13:39:55.315
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: com.be.tests.part1 [73]
  Unresolved requirement: Require-Bundle: Part1Libs; bundle-version="1.0.0"

我在依赖项选项卡中添加了新插件 (Part1Libs)。这 MANIFEST.MF 文件将依赖项显示为

Require-Bundle: org.eclipse.ui.intro,
org.eclipse.core.runtime,
org.eclipse.ui,
org.eclipse.equinox.ds,
org.eclipse.equinox.util,
org.eclipse.equinox.event,
Part1Libs;bundle-version="1.0.0"

看起来我错过了一个简单的步骤,但我不知道发生了什么。非常感谢任何帮助,

【问题讨论】:

  • 您的 RCP 运行情况如何?
  • 从产品测试运行它(概览选项卡)-> 启动一个 Eclipse 应用程序。我也尝试过右键单击产品和运行方式-> Eclipse 应用程序。

标签: eclipse dependencies rcp


【解决方案1】:

查看“运行 > 运行配置...”对话框并找到您的 RCP。

确保在“插件”选项卡上列出了 RCP 中的所有插件。

【讨论】:

  • 谢谢。那行得通。现在我将尝试看看为什么导出不起作用,但这是另一个问题......
猜你喜欢
  • 2015-08-16
  • 2015-02-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-10-30
  • 2017-06-25
  • 2022-07-07
相关资源
最近更新 更多