You are almost there; you have coded your app and tested it in an emulator to confirm it works as expected. It’s now time to get the app running on a phone. You do this by copying the app's JAD and JAR files to your phone then installing and running the app, this section explains how.
Run your app on a phone:
1. Package your MIDlet using the Create Package option in the project overview.
Step-by-step — Run your app on a phone
Step 1 — Package the app
First you have to package the MIDlet, which you do by clicking the Create Package option in the MIDlet project's overview page.
In the MIDlet Package Export dialogue select the Use Deployment directory option.
Click Finish, and your app's packages are built and saved into the MIDlet project.
Step 2 — Copy your app to your phone
You can now deploy the app to your phone. First connect your phone to your PC using a USB cable and, when prompted, select the Mass storage option on the phone. From the Projects list in Nokia IDE for Java copy your app's JAD and JAR files to the my_downloads folder on the phone's memory card. Once the files have been copied, disconnect the phone from the USB connection.
You can also send the files over a Bluetooth connection if you wish.
Step 3 — Install the app on your phone
Now you need to install the application. To do this, on your phone open the Files app then locate the app's JAD file in the Downloads folder of the Memory card. Tap the JAD item to start the installation process.
If you used a Bluetooth connection to transferred the files they'll be listed in the timeline home screen and can be installed from there.
Step 4 — Run your app
You can now run the app from on the phone’s App launcher home screen, as shown below, simply scroll down to find your app then tap your app to run it.
You have now seen how to create an environment for developing Java app for Asha phones. You installed the Asha SDK 1.0 for Java, created a MIDlet from a template in the Nokia IDE for Java ME, ran it in the Asha phone emulator, and then copied and ran the same app on your Asha phone. You’re now ready to use your Java skills to create applications for Nokia Asha smartphones.
Step 5 — Test against the Unified Testing Criteria
While you don’t need to undertake any additional testing to complete this getting started, when you are building your first real app you'll need to ensure it complies with Unified Testing Criteria of the Java Verified Initiative.