Search code examples
javaeclipseosgibundleequinox

How can I read a bundle's manifest before installing?


How can I read a bundle's manifest having only a JAR filename, but without installing or activating it?

I need to install bundles dynamically, but this creates a problem when I try to install a bundle with the same name and version of an installed one, even though they have different source files.


Solution

  • Maybe create JarFile and read manifest element using JarFile.getManifest?