WTK Use Introduction (1) - Getting Started Wireless Java (original) J2ME Wireless Toolkit (WTK) is a common J2ME SDK, using WTK to compile, verify, and run. Information about WTK can be queried with the following URL http://java.sun.com/products/j2mewtoolkit. The latest version is WTK2.1, which supports JTWI (Wireless Industry Java Technical Specifications) RoadMap 1, CLDC1.1, and J2ME Web Services API. This article mainly introduces WTK2.0 versions, which supports many new technical specifications, such as MIDP2.0, mobile media API, wireless message API, etc. Software download and installation WTK2.0 requires support for JDK1.4 version, you can download JDK1.4: http://java.sun.com/j2se/1.4.2/downloads/j2se/1.4.2/downloads/j2se/1.4.2/downloads can be as follows URL download http://java.sun.com/products/j2mewtoolkit/download-2_0.html After downloading JDK, then install the WTK. When you install the WTK, you will ask the JDK installation path. Please specify the correct JDK path at this step. After the installation is complete, WTK2.0 can be used. First start KTOOLBAR, which is in the WTK20 / bin directory. On the KTOOLBAR interface, the menu and toolbar are used to perform various functions, including new projects, open engineering, compilation generation, packaging, deployment, etc. The drop-down list box is used to select the simulator used when running the application. The lowermost area displays the system console output. In ktoolbar, select [File] | [Open Project] or click the [Open Project] button on the toolbar, select a project from the list list, such as "Photoalbum", click the [Open Project] button to open the engineering. Click the [Run] button on the toolbar to pop up the simulator window. Use the mouse to click the [SELECT] key on the simulator or use the Enter key on the keyboard, you can select the project run in the simulator, WTK2.0 provides four styles and skin color different simulators available, In addition to the default color simulator shown above, a black and white simulator, a media control simulator and a simulator QWERTYDEVICE with a standard keyboard. Use the DEVICE drop-down list box on KToolbar to select different simulators. Here's how to use the WTK to compile the application that runs yourself. First give the Hello World program on your phone. Establishing source file creation file Hello.java, which reads as follows: import javax.microedition.midlet.MIDlet; import javax.microedition.lcdui *; public class Hello extends MIDlet {private Display display; public Hello () {} public void startApp. () {Display = Display.getDisplay (this); TextBox T = New TextBox ("Demo App", "Hello World", 256, 0); Display.SetCurrent (T);} public void Pauseapp () {} public void DESTROEAPP (Boolean Unconditional) {}} The compiler is in the KTOOLBAR interface, click the [New Project] button, enter Project Name in the pop-up window: HelloWorld, Class Name: HelloWorld.