The problem is that none of the standard OSGi execution environments exposes the package sun.misc
, so the bundle using this package will not work on a standard OSGi runtime. This is what the build failure is telling you.
So if you had a standard OSGi runtime (note that Equinox is special here because of its osgi.compatibility.bootdelegation option), you'd need to tell the OSGi runtime to expose additional packages from the boot class path. A way to do this (so that Tycho also understands your intention) is to build a system bundle fragment which declares an Export-Package
of sun.misc
.
This has been reported to work, but I haven't tried this myself.