Configure your development environment
Before you build your BlackBerry application, you should check your project properties to ensure that you've included the appropriate dependencies and that the output paths match those defined in the bar-descriptor.xml file.
Before you test your application on a simulator or device, you must set the target device. If you are testing on a physical device, you must either sign your application or configure your environment to use a debug token, and install the debug token on the device.
When you build your application, make sure you build it using the solution platform (BlackBerry or BlackBerry Simulator) that corresponds to the target device.