Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

my java plugin use 3rd party jars

$
0
0

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.

 


Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>