Chapter 8. J2ME Command-Line Tools

J2ME developers have a range of visual environments to choose from when developing and debugging applications. Some of these have already been mentioned or will be covered in Chapter 9. In some cases, however, it is necessary to come to grips with the lower-level tools that lie behind these development environments. This chapter provides reference material for some of the command-line tools that developers are most likely to need to use.

cvm: The Connected Device Configuration Virtual Machine

Availability

CDC Reference Implementation, Foundation Profile Reference Implementation

Synopsis

cvm [options] [properties] classfile [args]

Description

CVM is a virtual machine that meets the requirements of the Connected Device Configuration specification. It provides all of the features required by the second edition of the Java Virtual Machine Specification and incorporates a garbage collector that is optimized for a small memory environment. In order to reduce startup time and memory overhead, the CVM usually has the core Java classes prelinked with it at build time using a process called ROMizing, which is also used by the CLDC virtual machine (KVM) and described in Section 2.4.1.

CVM is provided in source code form as part of the CDC and Foundation Profile reference implementations, which are supported on Linux and VxWorks.

Options

-version

Displays version information and exits. Typical output from this command looks like this:

java version "J2ME Foundation ...

Get J2ME in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.