Mickael Istria Messages: 781 Registered: July 2009 Location: Grenoble, France
As I'm trying to work on some API Tools for Tycho build, I'm hitting an
OSGi issue: Equinox can't load org.eclipse.e4.core.di bundle because of
missing javax.annotation package, whereas I use Java 6, which provide
Bundle id is 1
osgi> start org.eclipse.e4.core.di
org.osgi.framework.BundleException: The bundle
"org.eclipse.e4.core.di_1.1.0.v20120627-124443 " could not be
resolved. Reason: Missing Constraint: Import-Package: javax.annotation;
I thought this Import-Package could resolve to the JRE/System bundle. It
seems that it's not the case.
Is the only (good) way to get this bundle started to install also the
The package versions don't match. The system bundle exports at version 0 while you import at version 1. Since there are no standards for the package versions for the JRE packages, they are exported by the system bundle without version (which is version 0).