My project has two bundles, lets say Bundle A and Bundle B.
Now Bundle A needs to access a class from Bundle B.
How can I do that?
There are two ways:
Require-Bundle: bundle-id-of-bundle-AImport-Package: package.of.your.classIn both situations, you need to export the package that contains your class in bundle B: Export-Package: package.of.your.class
Also, here's a good intro: http://ctpjava.blogspot.com/2010/09/introduction-to-osgi.html