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.
CDC Reference Implementation, Foundation Profile Reference Implementation
cvm [options] [properties] classfile [args]
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.
Displays version information and exits. Typical output from this command looks like this:
java version "J2ME Foundation ...