Is it possible? Or do I have to try to install it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ll assume you’re talking about OSGi Release 4, since in OSGi Release 3 and earlier any valid JAR file was also a valid OSGi bundle.
Simply read the JAR’s manifest using the standard Java APIs in the
java.util.jarpackage. The minimum headers required to be a valid R4 bundle are:Bundle-ManifestVersion: 2Bundle-SymbolicName: ...As BJ points out, the “id” of the bundle is assigned when it is installed, but what many people take to be the “id” is actually the Bundle Symbolic Name.