Chapter 9. Deploying a Plain JAR
9.1. Bundle Tool (Bnd)
About the bnd tool
- Print the manifiest and show the package dependencies of a JAR file or bundle file.
- Wrap a vanilla JAR file, converting it into a bundle.
- Build a bundle from the class path, based on specifications in a
- Validate manifest entries.
maven-bundle-plugin. In fact, the approach to building bundles described in Chapter 3, Building with Maven is based on the Maven bundle plug-in and therefore, implicitly, is also based on the Bnd tool.
Downloading and installing bnd
bnd-Version.jar, to a convenient location. There is no installation involved: the JAR file is all that you need to use the Bnd tool. For convenience, however, it is advisable to rename the JAR file to
bnd.jar, so you won't have to do so much typing when you invoke it from the command line (for example, as in
java -jar bnd.jar Cmd Options)