• <i id='DBcgq'><tr id='DBcgq'><dt id='DBcgq'><q id='DBcgq'><span id='DBcgq'><b id='DBcgq'><form id='DBcgq'><ins id='DBcgq'></ins><ul id='DBcgq'></ul><sub id='DBcgq'></sub></form><legend id='DBcgq'></legend><bdo id='DBcgq'><pre id='DBcgq'><center id='DBcgq'></center></pre></bdo></b><th id='DBcgq'></th></span></q></dt></tr></i><div id='DBcgq'><tfoot id='DBcgq'></tfoot><dl id='DBcgq'><fieldset id='DBcgq'></fieldset></dl></div>
    1. <tfoot id='DBcgq'></tfoot>

        <legend id='DBcgq'><style id='DBcgq'><dir id='DBcgq'><q id='DBcgq'></q></dir></style></legend>
          <bdo id='DBcgq'></bdo><ul id='DBcgq'></ul>

        <small id='DBcgq'></small><noframes id='DBcgq'>

      1. Java 8 和缺少所需的能力Require-Capability:osgi.ee;过滤器=“(&amp;(os

        Java 8 amp; Missing required capability Require-Capability: osgi.ee; filter=quot;(amp;(osgi.ee=JavaSE)(version=1.8))quot;(Java 8 和缺少所需的能力Require-Capability:osgi.ee;过滤器=“(amp;(osgi.ee=JavaSE)(版本=1.8))) - IT屋-程序员软件开发技

        <small id='b6WkE'></small><noframes id='b6WkE'>

              <tbody id='b6WkE'></tbody>

          • <legend id='b6WkE'><style id='b6WkE'><dir id='b6WkE'><q id='b6WkE'></q></dir></style></legend>
            <i id='b6WkE'><tr id='b6WkE'><dt id='b6WkE'><q id='b6WkE'><span id='b6WkE'><b id='b6WkE'><form id='b6WkE'><ins id='b6WkE'></ins><ul id='b6WkE'></ul><sub id='b6WkE'></sub></form><legend id='b6WkE'></legend><bdo id='b6WkE'><pre id='b6WkE'><center id='b6WkE'></center></pre></bdo></b><th id='b6WkE'></th></span></q></dt></tr></i><div id='b6WkE'><tfoot id='b6WkE'></tfoot><dl id='b6WkE'><fieldset id='b6WkE'></fieldset></dl></div>
                <bdo id='b6WkE'></bdo><ul id='b6WkE'></ul>
              • <tfoot id='b6WkE'></tfoot>

                1. 本文介绍了Java 8 和缺少所需的能力Require-Capability:osgi.ee;过滤器=“(&amp;(osgi.ee=JavaSE)(版本=1.8))"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我使用的是运行 Java 8 的 Eclipse Luna win32.x86_64.

                  I have using Eclipse Luna win32.x86_64 runing with Java 8.

                  Help Menu >关于 >安装细节 >配置选项卡:

                  java.runtime.version=1.8.0_05-b13
                  java.version=1.8.0_05
                  

                  我创建了新的插件项目,请求 JavaSE-1.8 作为执行环境:

                  I have created new plug-in project, requesting JavaSE-1.8 as Execution Environment:

                  myplugin/META-INF/MANIFEST.MF 文件中我当然有:

                  In the myplugin/META-INF/MANIFEST.MF file I have of course:

                   Bundle-RequiredExecutionEnvironment: JavaSE-1.8
                  

                  我在产品文件中使用这个插件.当我尝试验证它时,我收到以下错误:

                  I use this plugin in a product file. When I try to validate it, I get following error:

                  当然,如果我启动产品,我会得到:

                  Of course if I start the product, I get:

                  !ENTRY org.eclipse.osgi 2 0 2014-07-10 08:14:22.042
                  !MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
                  !SUBENTRY 1 org.eclipse.osgi 2 0 2014-07-10 08:14:22.043
                  !MESSAGE Bundle update@********/myplugin/ was not resolved.
                  !SUBENTRY 2 myplugin 2 0 2014-07-10 08:14:22.044
                  !MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(&(osgi.ee=JavaSE)(version=1.8))".
                  

                  <小时>

                  我尝试了很多验证:


                  I have tried to verify a lot:

                  首选项 > Java > 已安装的 JRE

                  首选项 > Java > 已安装的 JRE > 执行环境

                  首选项 > Java > 编译器:JDK Compliance Compiler 合规级别

                  当我启动产品时,我在 Launching 选项卡中检查了我使用 jre8 作为执行环境.

                  When I start the product, I checked in the Launching tab that I use the jre8 as execution environment.

                  我什至尝试在 Run Configurations 对话框中更改 Java Runtime Environment:

                  I have even tried to change the Java Runtime Environment in the Run Configurations Dialog:

                  我尝试了不同的设置.它们都不起作用.

                  I have tried different settings. None of them works.

                  怎么了?

                  这是一个已知问题吗?

                  推荐答案

                  这个错误意味着你的bundle有一个Require-Capability: osgi.ee;filter="(&(osgi.ee=JavaSE)(version=1.8))" 条目.所以这意味着只有在有提供此功能的包时才会启动包.

                  The error means that your bundle has a Require-Capability: osgi.ee; filter="(&(osgi.ee=JavaSE)(version=1.8))" entry in its manifest. So this means the bundle will only start when there is a bundle that provides this capability.

                  对于 osgi.ee 功能,应该由 OSGi 框架(Equinox)提供此功能.显然它没有这样做.

                  In case of the osgi.ee capability it is the OSGi framework (equinox) that should provide this capability. Apparently it does not do this.

                  因此,一种方法是从捆绑清单中删除标头.另一个是让Equinox导出能力.也许您可以简单地尝试使用最新的春分版本.不确定这是否有帮助.您还可以尝试设置框架属性(使用 -D):org.osgi.framework.system.capabilities=osgi.ee;osgi.ee="JavaSE";version:List="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8"

                  So one approach would be to remove the header from you bundle Manifest. The other would be to make equinox export the capability. Perhaps you could simply try with the newest equinox version. Not sure if this helps though. You could also try to set the framework property (using -D): org.osgi.framework.system.capabilities=osgi.ee; osgi.ee="JavaSE";version:List="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8"

                  • eclipse列表上同样的问题

                  这篇关于Java 8 和缺少所需的能力Require-Capability:osgi.ee;过滤器=“(&amp;(osgi.ee=JavaSE)(版本=1.8))"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing SWT file )(无法在 32 位 JVM 上加载 64 位 SWT 库(替换 SWT 文件))
                  How can I specify the default JVM arguments for programs I run from eclipse?(如何为从 Eclipse 运行的程序指定默认 JVM 参数?)
                  Class JavaLaunchHelper is implemented in both ... libinstrument.dylib. One of the two will be used. Which one is undefined(JavaLaunchHelper 类在... libinstrument.dylib 中都实现了.将使用两者之一.哪个是未定义的) - IT屋-程序员软件开发技术分享
                  Running Eclipse on Windows 7 JRE and JDK not found(找不到在 Windows 7 JRE 和 JDK 上运行 Eclipse)
                  StringBuilder vs. .concat vs. quot;+quot; Operator relative performance different in eclipse than command line?(StringBuilder vs. .concat vs. “+eclipse中的操作员相对性能与命令行不同?)
                  Is there a maximum number you can set Xmx to when trying to increase jvm memory?(尝试增加 jvm 内存时,您可以将 Xmx 设置为最大数量吗?)

                      <tbody id='geSRW'></tbody>

                      <tfoot id='geSRW'></tfoot>
                      • <bdo id='geSRW'></bdo><ul id='geSRW'></ul>

                          <i id='geSRW'><tr id='geSRW'><dt id='geSRW'><q id='geSRW'><span id='geSRW'><b id='geSRW'><form id='geSRW'><ins id='geSRW'></ins><ul id='geSRW'></ul><sub id='geSRW'></sub></form><legend id='geSRW'></legend><bdo id='geSRW'><pre id='geSRW'><center id='geSRW'></center></pre></bdo></b><th id='geSRW'></th></span></q></dt></tr></i><div id='geSRW'><tfoot id='geSRW'></tfoot><dl id='geSRW'><fieldset id='geSRW'></fieldset></dl></div>
                        • <small id='geSRW'></small><noframes id='geSRW'>

                            <legend id='geSRW'><style id='geSRW'><dir id='geSRW'><q id='geSRW'></q></dir></style></legend>