Research In Motion must track the use of sensitive APIs noted as signed when used by applications for security and export control reasons. If you use these controlled classes or methods in your applications, your application must be signed with a key or a signature provided by RIM before you can load the application .cod files onto the BlackBerry smartphone.
If the cod file is not signed then it will give the error as shown in image, while running in simulator.
Importing Blackberry Keys. After successful installation of blackberry keys, RIM provides set of files and it installs on the bin folder of your eclipse directory.
For blackberry JDE: .. \Research In Motion\BlackBerry JDE 6.0.0\bin
For Eclipse Plugin: ..\Eclipse\plugins\net.rim.ejde.componentpack5.0.0_188.8.131.52\components\bin
These are the set of keys needed for blackberry code signing.
Steps to import the blackberry installed keys in Eclipse
- Open blackberry eclipse plugin.
- Build the application need to be signed.
- To import the existing signing keys Windows ->preference -> click on Blackberry Java plugin tab on left hand side -> Signing tools
- Click on import existing keys.
- Browse the folder that contains the above three files. And then OK.
- Now keys are imported to Blackberry eclipse plugin.
- Click on the project and then Sign With signature tool. Provide the password and then ok.
- Code Signing is online process.
Steps to import the blackberry keys to Blackberry JDE
- Navigate to “C:\Program Files\Research In Motion\BlackBerry JDE 5.0.0\bin” and then paste the required
- Launch Signature tool.
- Browse for COD file (need to be signed) in the file system, and select open.
- This will navigate to a window with status and file names.
- Select on request.
- Enter password when prompted.
- The success message is displayed on successful signing.