APPENDIX B
Command Line Reference
This appendix describes how to operate the J2ME Wireless Toolkit from the command line and details the steps required to build and run an application. It also describes the J2ME Wireless Toolkit certificate manager utility, called MEKeyTool, and the MIDlet signing utility, called JAD Tool (Java Application Descriptor Tool).
B.1 Prerequisites
Before building and running an application from the command line, verify that you have a version no earlier than 1.4.2 of the J2SE SDK. Run the jar.exe command (make sure the command is in your PATH) and then run java
For more examples, see the files build.bat and run.bat in the bin directories of the demonstration applications. You can find these files under the {toolkit}\apps\<demo>\bin directory where {toolkit} is the installation directory of the J2ME Wireless Toolkit and <demo> is the name of one of the demo applications.
B.2 The Development Cycle
For a full description of developing MIDP applications, see Chapter 2, “Developing MIDlet Suites.” This section describes how to accomplish each of the steps in the development cycle from the command line.
103