java - 无法使用 Eclipse 导出产品
问题描述
我试图制作一个无头 Eclipse RCP,因为我想通过带有 JNI 的 C 文件启动它。我创建了一个插件项目,在 MANIFEST.MF 中设置了正确的设置并创建了 Headless.product。一切正常,Application.java 也是如此,但是当我尝试导出 .product 以获得可执行文件时,它给了我一个错误。所以我尝试了本教程中的一个现有项目(以防问题不在设置中),它给了我同样的错误:
Cannot complete the install because one or more required items could not be found.
Software being installed: Headless Example 0.0.0
(com.codeandme.headless.headless 0.0.0)
Missing requirement for filter properties ~= $0: Headless Example
0.0.0 (com.codeandme.headless.headless 0.0.0) requires
'com.codeandme.headless.headless_root.gtk.linux.x86_64 [1.0.0]' but
it could not be found
(其中 com.codeandme.headless 是项目的名称)
现在,我应该怎么做才能使出口成为可能?有什么关系org.eclipse.equinox.executable
吗?如果是,我可以在哪里以及如何添加它?
预先感谢您的帮助 :)
解决方案
我有同样的错误信息:
Missing requirement for filter properties ~= $0: Application 0.0.0 (org.acme.project.application 0.0.0) requires 'org.acme.project.other 1.2.3' but it could not be found
由于某种原因,这个错误(也)意味着org.acme.project.other
存在......两次。
因此,在您的情况下,请打开“目标编辑器”的“内容”选项卡,并确保它com.codeandme.headless.headless_root.gtk.linux.x86_64
不存在于两个不同的版本中。此捆绑包可能位于某个功能中,因此可能有点难以找到第二个版本的来源。
推荐阅读
- groovy - 如何将闭包返回的“数据提供者”更改为“数据提供者”?
- npm - [Vue 警告]:无法挂载组件:未定义模板或渲染函数
- c++ - C++ 计算有向图中的最短路径
- python - 使用 qmake 安装 Pyside2:“需要 QT 版本 5.7+”,但我安装了 5.11 版本
- r - 与列表的 for 循环不一致
- swift - 从 firebase 数据库中获取数据
- python - 如何读取 .gz 中的 wav 文件?
- javascript - 在表单上按 Enter 时页面重新加载
- matlab - 如何在 Matlab 中反向转换日期时间构造函数的 InputFormat?
- ios - base64EncodedString 返回不需要的反斜杠