Your Activator's start method is probably throwing an exception -- I'd guess
because of a problem with your URL.
Off the top of my head the protocol (file) might be case sensitive and
failing that you might try an absolute file location until you're sure
everything else is working.
To be sure I'd walk through your Activator's start method with a debugger.
"lancel80" <firstname.lastname@example.org> wrote in message
> i have 2 simple bundles.one is HelloWorld bundle.in the start method of
> the second bundle i try to install the first bundle by using this:
> String s = "File:../workspace/aaa/";
> Bundle b = context.installBundle(s);
> i got Exception:
> org.osgi.framework.BundleException: The activator aaa.Activator for bundle
> aaa is invalid
> but the bundle aaa runs well itself.
> i am searching for the answer for a while.Can anyone give me suggestions
> about this?thanks.
Hmm... the framework is not succeeding when loading your Activator class.
This usually occurs because either your bundle's classpath is wrong (and the
framework can't find your Activator) or some dependency in your Activator is
I'd first take a look at your Bundle-ClassPath and Bundle-Activator name in
your manifest and make sure they're correct.
If that doesn't work I'd suggest using a debugger and setting a breakpoint
in org.eclipse.osgi.framework.internal.core.AbstractBundle.load Activator()
and walk through the loading of your Activator as this will give you a
chance to look at the underlying exception.