简体   繁体   中英

missing OSGi jar in eclipse mars with liberty profile

I'm using eclipse mars 4.5.2 for mac OS X 10.11. I create a simple OSGi bundle project and it is missing osgi.core.jar in its classpath.

The import org.osgi cannot be resolved

mac-mars classpath screenshot

BUT When I do the same actions in eclipse luna 4.4.2 on windows with websphere classic - osgi.core.jar is on its place.

windows-luna classpath screenshot

What I need to do, to resolve OSGi dependency?

On mac I have the latest ibm websphere liberty developer tools for mars and liberty javaee7 8.5.5.9 (18.03.2016), may be its a bug?

UPD: my manifest on both bundles:

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

(I'm new to OSGi and just trying to implement a custom user registry for liberty)

I have the latest ibm websphere liberty developer tools for mars and liberty javaee7 8.5.5.9 (18.03.2016)

I think the issue is the version of Liberty you are using. The EE7 edition does not come with the OSGi feature you needed by default.

Try to install the Liberty Profile V8.5.5.9 with OSGi Application . You should be able to download it via IBM WebSphere Liberty developer tools for Mars from the eclipse server view.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM