Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry® Z10

Posts: 1
Registered: ‎02-14-2013
My Device: STL100-2
My Carrier: SMC

Contact API not working at Blackberry 10

I am getting a “Library cannot be found” error when trying to get contact information using blackberry.pim.contacts API via WebWorks at Blackberry 10. What could be the cause?


When access blackberry.pim.contacts, a JavaScript Alert is prompted with the following message: Require Error Can't find /usr/lib/webplatform/plugins/jnext/libpimcontacts.so Library cannot be found


The version of applied WebWorks sdk is


The sample code used as follow:


var contacts = blackberry.pim.contacts;

var contact = blackberry.pim.contacts.getContact("1");


The below permission and feature configs are included in


  <rimSmiley Tongueermissions>

 <rimSmiley Tongueermit>access_pimdomain_contacts</rimSmiley Tongueermit>

  </rimSmiley Tongueermissions>

  <feature id="blackberry.pim.contacts"  required="true" version=""/>


And the webworks script tag is included in index.html as well

<script src="local:///chrome/webworks.js" type="text/javascript"></script>

<script type="text/javascript" src="local://supportforums.blackberry.com/chrome/webworks.js"></script>