The problem you were having is that when you start the first bundle, it will
try to resolve all its imports. That is likely to fail because there are a
couple of bundles that still have not been installed. So installing all bundles
first makes sure that as soon as you start starting bundles, at least all of
them are around, ready to provide exports in case the bundle you start needs
them.
Greetings, Marcel
On Feb 22, 2010, at 0:48 , Craig Dickson wrote:
> Thanks, that solved it apparently.
>
> On Feb 21, 2010, at 10:58 AM, Marcel Offermans wrote:
>
>> On Feb 21, 2010, at 19:16 , Craig Dickson wrote:
>>
>>> for (String bundleLocation : bundleLocations) {
>>> try {
>>> Bundle b = context.installBundle("file:" + bundleLocation);
>>> b.start();
>>> } catch (BundleException ex) {
>>> Logger.getLogger(Activator.class.getName()).log(Level.SEVERE,
>>> null, ex);
>>> }
>>
>> Split this up into 2 loops: first install all bundles and then in a second
>> pass, start them all.
>>
>> Greetings, Marcel
>>
>>
>> ---------------------------------------------------------------------
>> 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]