If you use Eclipse for BB development, you should use the Eclipse Plug-in and BB simulator . Thus, you simply create the application and start / debug it from the IDE. The IDE automatically starts the simulator and deploys your cod in the simulator.
In other cases, there are 3 ways to launch the * .cod application on the BB device:
, , , Crypto API Persistent storage API, , SignatureTool.