kvm: The Kilobyte Virtual Machine

Availability

CLDC Reference Implementation

Synopsis

kvm [options] classfile [args]

Description

The kvm command is a reference implementation of a Java virtual machine that meets the requirements of the CLDC specification. KVM can load classes from a directory structure in a local file system or from a set of JAR files. In order to reduce memory footprint and application startup time, it is usually built with a copy of the core Java libraries preloaded, using a technique known as ROMizing.

The kvm command provided with the CLDC reference implementation does not provide support for Java-level debugging. However, a second version, kvm_g, is provided. This version can provide this capability in conjunction with the KVM debug proxy (kdp), together with a set of additional command-line options that can be used to request debug trace information to be written to the standard output stream. It is also possible to build a version of the KVM that includes an implementation of a Java application manager (JAM) that can be used to load applications over a network and install them in local filestore. This feature is usually not used, however, since most systems prefer to incorporate more sophisticated application manager software of the type provided by the emulator and midp commands.

Options

The following options are available in all versions of the KVM:

-version

Prints the version number of the CLDC reference implementation, and exits.

-classpath path

Lists the ...

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.