【问题标题】:org.osgi.framework.BundleException: Could not resolve moduleorg.osgi.framework.BundleException:无法解析模块
【发布时间】:2015-01-30 14:34:34
【问题描述】:

我正在尝试设置我的 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)"

这是否意味着这些插件都无法解析,或者只是不是最后一个 org.w3c.dom.events 或者这是由于 org.eclipse.e4.ui.css.core 的捆绑版本不匹配造成的?

【问题讨论】:

    标签: java eclipse-plugin osgi-bundle eclipse-jdt


    【解决方案1】:

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

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

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

    【讨论】:

    • org.w3c.dom.events (3.0.0.draft...) 可用并在目标平台内容选项卡和运行配置插件选项卡中检查,当我手动选择插件。所以我不明白为什么不能解决?
    【解决方案2】:

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

    【讨论】:

      【解决方案3】:

      尽管存在该模块,但我遇到了这个问题。我发现这是 Windows 中的缓存问题。

      我删除了:C:/users/UserName/.eclipse的内容

      之后,Eclipse 启动正常。

      【讨论】:

        【解决方案4】:

        JMC 的最低 JDK 要求是 version=11

        【讨论】:

        • 您的答案可以通过额外的支持信息得到改进。请edit 添加更多详细信息,例如引用或文档,以便其他人可以确认您的答案是正确的。你可以找到更多关于如何写好答案的信息in the help center
        猜你喜欢
        • 1970-01-01
        • 2022-10-31
        • 2017-12-11
        • 2018-11-10
        • 2020-04-15
        • 2021-07-14
        • 2021-11-07
        • 2020-12-02
        • 2021-07-21
        相关资源
        最近更新 更多