Java org.osgi.framework.BundleException:无法解析模块

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/28238134/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 05:50:57  来源:igfitidea点击:

org.osgi.framework.BundleException: Could not resolve module

javaeclipse-pluginosgi-bundleeclipse-jdt

提问by Dreiven

I'm trying to setup my eclipse plugin development target and receive the following error multiple times:

我正在尝试设置我的 eclipse 插件开发目标并多次收到以下错误:

!ENTRY org.eclipse.e4.ui.css.swt 4 0 2015-01-30 15:15:06.879
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.e4.ui.css.swt [955]
Unresolved requirement: Require-Bundle: org.eclipse.e4.ui.css.core; bundle-version="0.9.0"
-> Bundle-SymbolicName: org.eclipse.e4.ui.css.core; bundle-version="0.10.100.v20140424-2042"; singleton:="true"
   org.eclipse.e4.ui.css.core [1134]
     Unresolved requirement: Require-Bundle: org.apache.batik.css; bundle-version="1.7.0"
       -> Bundle-SymbolicName: org.apache.batik.css; bundle-version="1.7.0.v201011041433"
          org.apache.batik.css [1177]
            Unresolved requirement: Import-Package: org.w3c.dom.events; version="[3.0.0,4.0.0)"

Does this mean that none of these plugins can be resolved, or just not the last one org.w3c.dom.eventsor is this a result from the mismatch of the bundle versions of org.eclipse.e4.ui.css.core?

这是否意味着这些插件中没有一个可以解决,或者只是不是最后一个,org.w3c.dom.events或者这是捆绑版本不匹配的结果org.eclipse.e4.ui.css.core

回答by greg-449

It is just org.w3c.dom.eventsthat can't be resolved.

就是org.w3c.dom.events无法解决。

You should have a org.w3c.dom.eventsplugin.

你应该有一个org.w3c.dom.events插件。

If you are setting up a target platform for plugin development the easiest thing to use is everything in the 'Eclipse SDK' download form http://download.eclipse.org/eclipse/downloads/

如果您正在为插件开发设置目标平台,最容易使用的是“Eclipse SDK”下载表单中的所有内容http://download.eclipse.org/eclipse/downloads/

回答by Alexander Baier

I faced the same problem. It turned out, I was missing the org.w3c.dom.events plugin in my dependencies in my product file or launch configuration.

我遇到了同样的问题。事实证明,我在我的产品文件或启动配置中的依赖项中缺少 org.w3c.dom.events 插件。