You now have a complete Hello World-style application and you'll want to check that it looks and works as you expected. You do this by running the app in the PC-based emulator included in the SDK. This section explains how.
Test your application:
1. Build the project; on the Run menu click Build Main Project (or press the F11 key)
More testing: You may wish to check out these tools, which can help with testing:
Step-by-step – Test your application
Step 1 — Build your application
The first step towards running your app is to build the project, to check that there are no errors in the code. To do this, on the Run menu click Build Main Project (or press the F11 key). The NetBeans IDE will now build the project and provides a progress indicator in the bottom right hand of the IDE window. You can also observe the progress of the build by opening the Output view, as shown below, from the Window menu by pointing to Output and clicking Output (or using the CTRL+4 keyboard shortcut).
Step 2 — Run your application in the emulator
If there are no errors in the build, and there should not be in this simple example, the project can now be run in the emulator. To do this, on the Run menu click Run Main Project (or press F6). The emulator opens and the application starts, as shown below.
Step 3 — Test your app
You can now test the app to confirm it behaves as you expected.
Once testing has finished, the app can be closed.
Tip: You may want to leave the emulator open if more testing is planned. Leaving the emulator open improves the speed at which an app is loaded.