...
We specify the bundle's activator class via the Bundle-Activator
attribute and also specify that our class imports the OSGi core framework package and the dictionary service interface package via the Import-Package
attribute. The dictionary service interface package will be fulfilled by the bundle in Example 2, which exports this package. The OSGi framework will automatically handle the details of resolving import packages. (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 to have the felix.jar
file (found in Felix' bin
directory) and the example2.jar
file in our class path. We compile the source file using a command like:
...