This is done everywhere, all the time.
The first thing to realize is that dropping
bundles into the plugins folder does not necessarily mean they get recognized
by OSGi. There is a property you can set that tell OSGI to check for new
bundles on each startup, but I don't recall what it is off-hand. The other
thing you can do is remove the folders in your configuration directory.
This removes the bundle cache and forces a rebuild.
If that doesn't work for you then use
the OSGi console to look at the state of your bundles. The bundle you want
to import from must be "resolved". If it isn't, you can try starting
it and see what dependency is missing.
Enrique Perez <enriqueperez@xxxxxxxxxxxxx> Sent by: dsdp-ercp-dev-bounces@xxxxxxxxxxx
09/15/2008 07:29 AM
Please respond to
enriqueperez@xxxxxxxxxxxxx; Please respond to
DSDP ercp list <dsdp-ercp-dev@xxxxxxxxxxx>
To
dsdp-ercp-dev@xxxxxxxxxxx
cc
Subject
[dsdp-ercp-dev] How to call a method
of a bundle from another bundle?
Hi all,
I'm trying to create collaborative bundles. I create the first bundle
and include its package in its Export-Package section of its
MANIFEST.MF. Then, I create another bundle and add the former bundle as
a dependency. In Windows works fine, but when I deploy it in the
emulator it doesn't work. I've copied the plugins in the plugins folder
of the eRCP, but when I execute the application I get a
java.lang.NoClassDefFoundError exception.
What am I doing wrong? Has anybody done something similar?