Add shared libraries to your BAR file

If you add a shared library that is not part of the BlackBerry Native SDK for Tablet OS, the shared library is not available and must be packaged as part of your application.

You can add external shared libraries or libraries that you create. The BlackBerry Tablet OS uses ELF (Executable and Linking Format) binary format. ELF simplifies the task of making shared libraries and enhances the loading of shared libraries at runtime.

The OS uses a runtime linker to find shared libraries for applications. The OS loads a shared library only when it is not loaded in memory. Shared libraries are identified by a fully qualified pathname and are found in your LD_LIBRARY_PATH in the BAR application descriptor file.

To add a shared library:
  1. Open the BAR application descriptor file (bar-descriptor.xml) file in your project.
  2. Locate the LD_LIBRARY_PATH entry and specify the folder your shared library is located when deployed on the device.
  3. Save the file.