Bundle-ClassPath ::= entry ( ',' entry )*
-
Example:
Bundle-ClassPath: /lib/libnewgen.so, .
-
Pattern:
.*
Bundle-ClassPath
The Bundle-ClassPath
header defines the internal class path for the bundle. It is a comma-separated list of JAR file paths or directories (inside the bundle) that contain classes and resources. The special entry .
refers to the root of the bundle JAR and is the default if the header is not specified.
All files or directories listed in the Bundle-ClassPath
must be present in the bundle. You can use the Include-Resource
instruction to include additional JARs or directories. In most cases, it is recommended to avoid using Bundle-ClassPath
unless necessary, as it can complicate class loading. Instead, use the @
option in Include-Resource
to unroll JARs into the main bundle.
Example:
Bundle-ClassPath: ., lib/extra.jar
This header is important for advanced scenarios where you need to include additional classpath entries inside your bundle.
TODO Needs review - AI Generated content