A method and system for running a Java ME application on a computer system
are described. The Java ME application is a software program designed for
execution on a resource-constrained platform. A first virtual machine is
launched in a process, the first virtual machine being is caused to run
an application emulator. A second virtual machine is launched in the
process, the second virtual machine being caused to run the Java ME
application. The application emulator interfaces with application
programming interfaces of the second virtual machine to interface with
inputs and outputs of the Java ME application and redirect the inputs and
outputs to local devices controlled by the application emulator.