Java 8 & Missing required capability Require-Capability: osgi.ee; filter=”(&(osgi.ee=JavaSE)(version=1.8))”

The error means that your bundle has a Require-Capability: osgi.ee; filter="(&(osgi.ee=JavaSE)(version=1.8))" entry in its manifest. So this means the bundle will only start when there is a bundle that provides this capability.

In case of the osgi.ee capability it is the OSGi framework (equinox) that should provide this capability. Apparently it does not do this.

So one approach would be to remove the header from you bundle Manifest.
The other would be to make equinox export the capability. Perhaps you could simply try with the newest equinox version. Not sure if this helps though.
You could also try to set the framework property (using -D):
org.osgi.framework.system.capabilities=osgi.ee; osgi.ee=”JavaSE”;version:List=”1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8″

See

Leave a Comment