Troubleshooting guide

18
Packaging and distributing applications
Preverify applications
To reduce the amount of processing the BlackBerry® device performs when you load your application, partially
verify your classes.
> Issue a command from the command line in the following format:
preverify.exe [-d] output -classpath <directory> input; <directory>
To preverify .cod files, you may also use the BlackBerry device simulator. See the Simulator Guide for more
information about the BlackBerry device simulator.
Determine if your code requires signatures
Research In Motion (RIM) tracks the use of sensitive APIs in the BlackBerry® Java™ Development Environment for
security and export control reasons.
> Locate the item in the API Reference. If the item has a lock icon or is noted as “signed”, your application
requires a signed key or signature, which RIM provides, before you can load the application .cod files onto a
BlackBerry device.
Controlled APIs
Three categories of Research In Motion (RIM) Controlled APIs exist: Runtime APIs, BlackBerry® Application APIs,
and BlackBerry Cryptography APIs. See the
API Reference for more information about all RIM controlled APIs.
You can run applications that use controlled APIs in the BlackBerry device simulator without code signatures;
however, you must request code signatures from RIM before you can load these applications onto BlackBerry
devices.
Preverify applications
Determine if your code requires signatures
Register to use RIM controlled APIs
Request code signatures
Distributing applications over the wireless network
Distributing applications with the BlackBerry Desktop Software
Note: To test and debug your code before receiving code signatures, use the BlackBerry device simulator. Code must have code
signatures for loading onto BlackBerry devices.