Command line reference, B.1 prerequisites, B.2 the development cycle – Sun Microsystems J2ME User Manual

Page 115: B. command line reference, Prerequisites, The development cycle, Appendix b

Advertising
background image

103

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 -version

at the

command line to verify that the version of the J2SE SDK that is actually being used
is 1.4.2.

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.

Advertising