Working with Java ME Projects

The NetBeans IDE supports the coding, testing and deployment of applications for mobile devices that support the Java ME, CLDC, MIDP and CDC technologies. The following table illustrates the development life cycle for mobile applications.

Number one
Create your project and project configurations
  1. Create a project using the best template for your programming needs.
  2. Configure the project. Use the New Project wizard or the project properties to create multiple configurations that enable you to simultaneously build and deploy your application to a range of platforms and devices.

Number two
Design and code

  • For CLDC/MIDP applications, use the drag-and-drop interface of the Visual Mobile Designer to design your application's work flow and design its GUI.
  • CLDC/MIDP wizards help you create applications that consume Web Services.
  • Optionally, you can use preprocessor blocks to add device-specific code for each configuration and use abilities to keep track of these configurations.
  • For CDC applications, use the IDE's GUI Builder to design your application's interface.

Number three
Test and debug
  1. To run a single project configuration on a device emulator, choose Run > Run Main Project, or, to quickly test alternate device emulators, right-click on the project and choose Run With.
  2. Set breakpoints or watches in your code.
  3. Choose Debug > Debug Main Project or right-click any project and choose Debug Project. You can also attach a running process to the debugger.
  4. Step through the program execution.

Number four
Build
  1. Choose Build > Build Main Project.
  2. To create JAR files for multiple devices at once, right-click on the project and choose Batch Build.

Number four
Deploy
  1. Use the Project properties set deployment options for each configuration.
  2. To deploy multiple configurations of the same project, right-click on the project and choose Batch Deploy..

Legal Notices