The MicroJava Virtual Machine (MJVM) is a bytecode interpreter for MicroJava as specified in the MicroJava Specification. In this implementation MJVM features GUI front-end and debug capabilities.
MJVM itself is fully implemented in Java and requires Java Runtime Environment to run. It works on Windows, Linux, Solaris, Mac and other Java enabled platforms.
MJVM can be used from the command line or as a standalone GUI application.
From the command line type:
java -jar mjvm.jar [options] <file> where [options] are: --help, -h Display help information --version Print program version and exit --gui Start GUI and <file>: MicroJava bytecode fileor, if the provided shell script (mjvm.bar or mjvm.sh) is on the path, type:
mjvm [options] <file>
File mjvm.jar is an executable Java archive that does not depend on other Java libraries. It can also be run as GUI application. Double click on this file should start the application. This is the preferred way of using MJVM.
In this GUI mode you can set break points on MJVM instructions and edit the values of the MJVM memories. Memory columns marked with asterisk (*) are editable.
Examples are provided within the application in the Help/Examples menu. There are three examples: HelloWorld.mjb, ByteEcho.mjb and IntEcho.mjb. The HelloWorld example is a good starting point.