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
org.osgi.framework.BundleException: Could not resolve module
提问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.events
or 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.events
that can't be resolved.
就是org.w3c.dom.events
无法解决。
You should have a org.w3c.dom.events
plugin.
你应该有一个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 插件。