我正在尝试添加 jetty 客户端库并使用它作为基于 Bnd OSGi bundle 的项目之一。添加库后,代码正在编译/构建但是当我运行“Bnd OSGi Run Launcher”时,我看到以下错误:
could not resolve the bundles: [com.project.examples-2.0.1.201605061319Unresolved constraint in bundle com.project.examples [8]: Unable to resolve 8.0: missing requirement [8.0] osgi.wiring.package; (&(osgi.wiring.package=org.eclipse.jetty.client)(version>=9.3.0)(!(version>=10.0.0))) ]
我已在 Java 构建路径库中添加了所需的 jetty 客户端 jar 文件,还在类路径中添加了条目。仍然收到此错误。
感谢您的帮助
最佳答案
您需要将 Jetty 客户端 bundle 安装到运行时 OSGi 框架中。
从您的问题来看,您似乎只将其添加到构建路径或类路径中。
关于java - 无法解析 8.0 : missing requirement [8. 0] osgi.wiring.package;,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37073646/