Hello Tom,
Eclipse
is launched with a backwards compatibility flag that is
allowing your bundles to load classes from the packages
provided by the VM (osgi.compatibility.bootdelegation=true).
When you launch equinox "outside of eclipse" this option is
not set by default.
I added osgi.compatibility.bootdelegation=true to the config.ini
in the configuration directory and the packages are still not
available. E.g. I get a Class Not Found Exception in a bundle that
uses QName when javax.xml.namespace is not imported.
Moreover, according to this site
http://help.eclipse.org/help32/topic/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html
osgi.compatibility.bootdelegation is set to true by default, so
this should also applies to "outside of Eclipse".
PDE also
has tools for generating your import statements.
I only know the "Automated Management of Dependencies" (AMD)
function (section) in die bundle manifest editor. Are more tools
available in the PDE?
Rene
-------- Original Message --------
Subject: Re: [equinox-dev] Some Packages must be imported outside
of Eclipse
From: Thomas Watson
<tjwatson@xxxxxxxxxx>
To: Equinox development mailing list
<equinox-dev@xxxxxxxxxxx>
Date: Thu Jun 21 2012 15:01:24 GMT+0200