Felix Meschberger wrote:
Hi,

Am Donnerstag, den 08.11.2007, 15:12 +0200 schrieb Väisänen Teemu:
# org.osgi.framework.bootdelegation=sun.*,com.sun.*

was commented out in Felix or SFelix configuration file, and because
of that required classes weren't found.. I wonder why.

Problem is, that the sun.* and com.sun.* are not part of the official
Java API and may be missing on non-Sun VMs. Therefore, generally
providing these packages is probably not a good idea. Nevertheless, in a
specific use case and application as yours, you may of course need to
provide them.

Right.

You have to determine if this is the best approach for your situation, but you should understand that this is one of the non-preferred approaches and is only intended to be used as a last resort.

Boot delegation bypasses the normal bundle class loaders and just goes right to the boot class loader. Thus, if you have this, bundles do not even need to import those classes since they will always be available (just like java.lang.* classes).

If possible, you are better off having the packages listed in the system packages property so that they are provided from the class path and bundles actually have to import them to use them.

-> richard

Regards
Felix




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to