...
We specify which class implements the Bundle-Activator
interface and also specify that our bundle imports the OSGi core package and the dictionary service interface package using the Import-Package
attribute. Th dictionary service package will be fulfilled by the bundle in Example 2, which exports this package. (Note: Make sure your manifest file ends in a trailing carriage return or else the last line will be ignored.)
To compile our source code, we need the felix.jar
file (found in Felix' bin
directory) in our class path. We compile the source file using a command like:
...