在具有自由配置文件的eclipse mars中缺少OSGi jar
missing OSGi jar in eclipse mars with liberty profile
我正在为 mac OS X 10.11 使用 eclipse mars 4.5.2。我创建了一个简单的 OSGi 包项目,但它的类路径中缺少 osgi.core.jar。
The import org.osgi cannot be resolved
但是当我在 windows 上使用 websphere classic 在 eclipse luna 4.4.2 中执行相同的操作时 - osgi.core.jar 就在它的位置上。
windows-luna classpath screenshot
我需要做什么来解决 OSGi 依赖?
在 mac 我有最新的 ibm websphere liberty developer tools for mars and liberty javaee7 8.5.5.9 (18.03.2016),可能是一个错误?
UPD:我在两个捆绑包上的清单:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: IgLoginBundle
Bundle-SymbolicName: IgLoginBundle
Bundle-Version: 1.0
Bundle-Activator: activator.Activator
Import-Package: org.osgi.framework
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Export-Package: activator
(我是 OSGi 的新手,只是为了自由而尝试实现自定义用户注册表)
I have the latest ibm websphere liberty developer tools for mars and liberty javaee7 8.5.5.9 (18.03.2016)
我认为问题在于您使用的 Liberty 版本。默认情况下,EE7 版本不附带您需要的 OSGi 功能。
尝试使用 OSGi 应用程序 安装 Liberty Profile V8.5.5.9。您应该能够通过 IBM WebSphere Liberty 开发人员工具从 eclipse 服务器视图下载它。
我正在为 mac OS X 10.11 使用 eclipse mars 4.5.2。我创建了一个简单的 OSGi 包项目,但它的类路径中缺少 osgi.core.jar。
The import org.osgi cannot be resolved
但是当我在 windows 上使用 websphere classic 在 eclipse luna 4.4.2 中执行相同的操作时 - osgi.core.jar 就在它的位置上。
windows-luna classpath screenshot
我需要做什么来解决 OSGi 依赖?
在 mac 我有最新的 ibm websphere liberty developer tools for mars and liberty javaee7 8.5.5.9 (18.03.2016),可能是一个错误?
UPD:我在两个捆绑包上的清单:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: IgLoginBundle
Bundle-SymbolicName: IgLoginBundle
Bundle-Version: 1.0
Bundle-Activator: activator.Activator
Import-Package: org.osgi.framework
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Export-Package: activator
(我是 OSGi 的新手,只是为了自由而尝试实现自定义用户注册表)
I have the latest ibm websphere liberty developer tools for mars and liberty javaee7 8.5.5.9 (18.03.2016)
我认为问题在于您使用的 Liberty 版本。默认情况下,EE7 版本不附带您需要的 OSGi 功能。
尝试使用 OSGi 应用程序 安装 Liberty Profile V8.5.5.9。您应该能够通过 IBM WebSphere Liberty 开发人员工具从 eclipse 服务器视图下载它。