This section shows how to create the example application from scratch, or how to import the files into either Eclipse or NetBeans environment. Note that this section only presents one possible way of creating the required functions.
Both Eclipse and NetBeans IDEs organize the source files and resources in a similar manner. First, you create a Project as an upper-level container for all the source files, resources, JAD files, and other important assets. The source files in the Project are further divided into Packages.
In the Hello
World example, both source files are placed in hello package.
The workflow for and building new MIDlets is roughly the following:
Create a new MIDP project
For instructions on creating new MIDP projects, see the following guidelines for Eclipse and NetBeans. Note that the Eclipse instructions use the Java ME Wireless Toolkit, whereas for S60 or Series 40 development, you need to use the respective S60 or Series 40 SDK.
Create source files for the project
For instructions on creating source files, see the following guidelines for Eclipse and NetBeans.
Build the project
For instructions on building the project, see the following guidelines for Eclipse and NetBeans.
Deploy the built MIDlet
The built MIDlet is now ready to be tested on an emulator or to be transferred onto a mobile device. For instructions on deploying, see section Deploying MIDlets to a device.