1

我想在执行命令启动文件时运行包含解析器 xml(SAX) 代码的包:包的路径我有问题

这是错误消息

 -> start file:C:\felix\bundles\home.analyser-1.0.0.jar
org.osgi.framework.BundleException: Unresolved constraint in bundle home.analyse
r [13]: package; (package=org.xml.sax.helpers)

我尝试在网上搜索jar文件,但没有找到

有人可以帮我吗

4

1 回答 1

1

org.xml.sax.helpers包是 JDK 的一部分。您的问题可能是此包未包含在 OSGi 容器的系统包中。

如果您想从包而不是 JDK 中使用它,您可以安装org.everit.osgi.bundles.org.apache.xmlcommons.full包导出Apache XMLCommons项目的所有包并包含 apache 实现。

于 2015-05-02T13:53:03.020 回答