简体   繁体   English

Eclipse 无法导出产品

[英]Eclipse Export Product not possible

I tried to make a headless Eclipse RCP because I want to launch it through a C file with JNI.我试图制作一个无头 Eclipse RCP,因为我想用 JNI 通过 C 文件启动它。 I created a plug-in project, set the correct settings in MANIFEST.MF and created Headless.product.我创建了一个插件项目,在 MANIFEST.MF 中设置了正确的设置并创建了 Headless.product。 Everything works, also Application.java, but when I tried to export the .product to have the executable file, it gave me an error.一切正常,Application.java 也是如此,但是当我尝试导出 .product 以获得可执行文件时,它给了我一个错误。 So I tried with an existing project from this tutorial (just in case the problem wasn't in the settings) and it gave me the same error:所以我尝试使用教程中的现有项目(以防问题不在设置中),但它给了我同样的错误:

 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

This is the screenshot of the problem这是问题的截图

(Where com.codeandme.headless is the name of the project) (其中 com.codeandme.headless 是项目名称)

Now, what should I do to make the export possible?现在,我应该怎么做才能使导出成为可能? Anything to do with org.eclipse.equinox.executable ?org.eclipse.equinox.executable什么关系? And if yes, where and how can I add it?如果是,我在哪里以及如何添加它?

Thank you in advance for your help :)预先感谢您的帮助 :)

I had the same error message:我有同样的错误信息:

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

For some reason this error (also) means, that org.acme.project.other is present... twice.出于某种原因,这个错误(也)意味着org.acme.project.other存在......两次。

So in your case, open the "Content" tab of the "Target Editor" and make sure that com.codeandme.headless.headless_root.gtk.linux.x86_64 is not present in two distinct versions.因此,在您的情况下,打开“目标编辑器”的“内容”选项卡,并确保com.codeandme.headless.headless_root.gtk.linux.x86_64不存在于两个不同的版本中。 This bundle might be inside a feature, so it might be a bit hard to find where the second version came from.这个包可能在一个特性中,所以可能很难找到第二个版本的来源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM