Introduction To J2ME
Introduction To J2ME
September 29, 2009 Anurag Khode Aim: The aim of this article is to provide instructions on how to run application/games on the emulator, this is so that the application/games can be tested, the document does not intend to fulfill any other purpose other than instructing how to run application only to test the application/games. What is an emulator? An emulator, in the most general sense, duplicates (provides an emulation of) the functions of one system with a different system, so that the second system appears to behave like the first system. Unlike a simulation, it does not attempt to precisely model the state of the device being emulated; it only attempts to reproduce its behavior. A simulator is a specially accurate emulator. J2ME emulators: The basic J2ME emulator to be used for this exercise is The Sun Microsystems J2ME Wireless Toolkit 1.0.4_01. The emulator is installed after Java 2 SDK Std Edn. V 1.3. The steps to run applications are as follows: 1. After installation, the emulator can be easily accessed from the start menu. Before running the application, select the default device selection and select a device from a drop down box.
NOTE: Devices are present in the WTK (Wireless ToolKit) folder. This folder is usually named as WTK104 unless changed in the path that it was installed to. The devices are present in the folder called devices inside the folder wtklib. For example: C:\WTK104\wtklib\devices.
1. The next step is to provide a path to the application. Select Run MIDP application from the start menu under the name that the WTK was installed to. The path to the application .JAD (Java Application Descriptor) is provided.
NOTE: Take care that the path is not too long; the emulator does not work with long Paths Example: The emulator is installed with the name J2ME Wireless ToolKit 1.0.4_01. This is the method followed:
Click on start Select J2ME Wireless ToolKit 1.0.4_01 Select default device selection -> Select a device from the drop down box and click ok Select start Select J2ME Wireless ToolKit 1.0.4_01 Select Run MIDP application Provide the path to the .JAD file and click on start.
Posted in J2ME Application Testing. 2 Comments