You need to put the native lib in the bundle and put a Bundle-NativeCode header in the bundle's manifest with the necessary information. See the OSGi Core spec for details.
 
--

BJ Hargrave
Senior Technical Staff Member, IBM // office: +1 386 848 1781
OSGi Fellow and CTO of the OSGi Alliance // mobile: +1 386 848 3788
hargr...@us.ibm.com
 
 
----- Original message -----
From: <manoj.vrajam...@wipro.com>
Sent by: osgi-dev-boun...@mail.osgi.org
To: <osgi-dev@mail.osgi.org>
Cc:
Subject: [osgi-dev] Help
Date: Thu, Oct 20, 2016 6:24 AM
 

Hi all,

 

I am on Enroute/Bndtools…

 

I have a java native library (xxx_java.so) which I am plan to load using code as below in my .java file.

 

static {

                System.loadlibrary(xxx_java);

}

 

Now, where, which directory and how do I place/put my xxx_java.so file?

 

Thanks,

Manoj

 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev
 

_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to