My java plugin can use 3rd party jars that is not OSGI bundle packages.file:///D:/study/vsphere-web-client-sdk-6.7.0-10244866/flex-client-sdk/docs/FAQ.html#using-bundlor
I tried to "inline"(or nest) the library insede my plugin bundle:
- Add this to your MANIFEST.MF
Bundle-ClassPath: .,myOtherLib.jar
- Include myOtherLib.jar at the root level of your plugin jar. It will be searched by the class loader along with the other classes from your plugin.
- If you generate the manifest with bundlor you may need to add a list of packages in Excluded-Imports: and Excluded-Exports: to be sure your plugin bundle doesn't export or import things that will interfere.
but that also did'nt worked got errors as:
Error retrieving deployment data for the plugin package at /etc/vmware/vsphere-client/vc-packages/vsphere-client-serenity/com.emc.asd.powerpath.licenseappliance-2.3.0 java.io.IOException: The bundle at /etc/vmware/vsphere-client/vc-packages/vsphere-client-serenity/plugins/jaxws-rt.jar should have Bundle-SymbolicName and Bundle-Versionheaders in its MANIFEST.MF
Can someone please help me fixing this.