The HelloWorld MIDlet shows you how to create a simple MIDlet that displays the text "Hello, world!" on the device screen.
Figure: HelloWorld MIDlet running on a Series 40 full touch device in portrait and landscape modes
For a tutorial that shows you how to create this MIDlet, see section Getting started.
This MIDlet is provided in two versions:
The regular version is compatible with Series 40 and Symbian devices that support CLDC 1.1 and MIDP 2.1.
The Series 40 full touch version is only compatible with Java Runtime 2.0.0 for Series 40 devices and newer.
The MIDlet project files are packaged as a zip file. The zip file includes two projects: the regular version and the Series 40 full touch version. To download the zip file, click the following link:
The MIDlet consists of the following classes (click to view the full source code):
Note: The source code is from the Series 40 full touch version of the MIDlet. To view the source code of the regular version, see the source code files in the zip file.