首页 > 解决方案 > 无法使用 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吗?如果是,我可以在哪里以及如何添加它?

预先感谢您的帮助 :)

标签: javaeclipseexportproductheadless

解决方案


我有同样的错误信息:

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不存在于两个不同的版本中。此捆绑包可能位于某个功能中,因此可能有点难以找到第二个版本的来源。


推荐阅读