Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We specify which class is used to activate the bundle via the Bundle-Activator attribute and also specify that our bundle imports the OSGi core, OSGi Service Tracker, and spell checker service interface packages with 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 example6.jar file in our class path. We compile the source file using a command like:

...