0

How do i include a native shared library and bundle as an OSGI service. I'm using bndtools and I m quite confused with the info that needs to be provided in the pom.xml that eventually gets translated as the meta info in the manifest file .

I need to use a C shared library through JNA. I tried with the below snippet in my pom.xml:

`<Include-Resource>
     {maven-resources},
     libClib.so    
 </Include-Resource>
 <Bundle-NativeCode>
     /abc/def/libClib.so;
     osname=Linux;processor=x86-64
 </Bundle-NativeCode>`
voidone
  • 333
  • 1
  • 3
  • 12
  • Do you intend to convert a vanilla jar into an OSGi bundle? In that case you can refer to http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html. – Thomas Joseph Jun 26 '14 at 12:50
  • I need to use a C shared library through JNA. I tried with the below snippet in my pom.xml: ` {maven-resources}, libClib.so /abc/def/libClib.so; osname=Linux;processor=x86-64 ` – voidone Jun 30 '14 at 07:54

0 Answers0