Lably
Skip to content

Apache Felix

  • 2 min read
  • 4 chapters

Explore on Lably

ToursExplore Lably’s 3D tours

Running Felix

To run Apache Felix OSGi, you need to download the felix-framework-4.x.x.tar.gz or felix-framework-4.x.x.zip compressed file from the site. Once you have extracted the Felix framework distribution, from the command line in the extracted directory type the following:

java -jar bin/felix.jar

After bundles are installed and running, typing a command like help from the console will display all available commands, which are:

  • bundlelevel <level> <id> ... | <id> - set or get bundle start level.
  • cd [<base-URL>] - change or display base URL.
  • find <bundle-name> - display bundles matching substring.
  • headers [<id> ...] - display bundle header properties.
  • help - display impl commands.
  • inspect - inspect dependency information (e.g., packages, service, etc.).
  • install <URL> [<URL> ...] - install bundle(s).
  • log [<max>] [error|warn|info|debug] - list recent log entries.
  • obr help - OSGi bundle repository.
  • ps [-l | -s | -u] - list installed bundles.
  • refresh [<id> ...] - refresh packages.
  • resolve [<id> ...] - attempt to resolve the specified bundles.
  • shutdown - shutdown framework.
  • start <id> [<id> <URL> ...] - start bundle(s).
  • startlevel [<level>] - get or set framework start level.
  • stop <id> [<id> ...] - stop bundle(s).
  • sysprop [-r] [<key>] [<value>] - Display, set, modify and remove system properties.
  • uninstall <id> [<id> ...] - uninstall bundle(s).
  • update <id> [<URL>] - update bundle.
  • version - display version of framework.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Computing and information technology