...
We specify the class to activate our bundle via the Bundle-Activator
attribute and also specify that our bundle imports the core OSGi framework package and the dictionary service interface package using the Import-Package
attribute. 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:
...