Skip Headers
Oracle® Java ME Embedded Getting Started Guide for the Windows Platform
Release 3.4
E35132-03
  Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
 
Next
Next
 

B Using the Command Line Emulator

The Oracle Java ME SDK 3.4 emulator can be started from a Windows command line. Once started, it runs and behaves the same as it does when started from the NetBeans or Eclipse IDE.

Starting the emulator from the Windows command line allows you a number of emulator options. For more information, see "Useful Command Line Emulator Commands".

Finding the Oracle Java ME SDK Emulator

You can find the Oracle Java ME SDK command line emulator within the bin directory of the Oracle Java ME SDK 3.4 installation.

For example, if the Oracle Java ME SDK 3.4 is installed in C:\Java_ME_platform_SDK_3.4, then the emulator would be located at: C:\Java_ME_platform_SDK_3.4\bin\emulator.exe

Using the Oracle Java ME SDK Emulator

To start the emulator from the Windows command line:

  1. Open the Windows command line from the Start Menu, using Start > Run.

  2. Change to the bin directory of the Oracle Java ME SDK 3.4 distribution:

    C:\>cd Java_ME_platform_SDK_3.4\bin

  3. Enter the following command, as shown here:

    emulator.exe -Xdevice:IMPNGDevice1 -Xdescriptor:location_of_jad_file

    For example:

    emulator.exe -Xdevice:IMPNGDevice1 -Xdescriptor:C:\Java_ME_platform_SDK_3.4\apps\sample\sample_imlet.jad


    Note:

    You can run the emulator command without the .exe extension. It works both ways, with the extension and without


Useful Command Line Emulator Commands

This section provides a list of ME SDK emulator commands you may find useful, which can be entered on the Windows command line.


Note:

For a complete list of ME SDK emulator commands, type: emulator -help.