Sun Microsystems J2ME manual Simple Development Cycle, Edit Source Code

Models: J2ME

1 134
Download 134 pages 62.02 Kb
Page 19
Image 19

FIGURE 4 File locations in the console

2.2The Simple Development Cycle

The simple development cycle looks like this:

Edit source code → Build → Run

1.Edit source code. In this step, you create Java source files and resource files that will be used by your application.

2.Build. The J2ME Wireless Toolkit compiles and preverifies your Java source files.

3.Run. The compiled Java class files are run on the emulator.

If an error occurs when the toolkit attempts to compile your source files, go back and edit them again. If you find a bug when you are testing your application in the emulator, edit the source files to fix the bug.

Now that you understand the simple development cycle at a high level, the rest of this section illustrates how you can accomplish each step using the J2ME Wireless Toolkit.

2.2.1Edit Source Code

Editing source code is the only step in which the J2ME Wireless Toolkit is no help at all. You will need to use the text editor of your choice to create and edit source code files.

Chapter 2 Developing MIDlet Suites 7

Page 19
Image 19
Sun Microsystems J2ME manual Simple Development Cycle, Edit Source Code