Setting up system.out and system.err redirection

Steps

  1. Install Ecmt applications to your Nokia N97 device from Ecmt_Agent_MIDP.SIS file.

    See Installing EcmtAgent to an Nokia N97 device.

  2. Install the Redirector MIDlet (RedMIDlet) from the Application Manager of your Nokia N97 device.

    The Redirector MIDlet is unpacked from the .sis file during installation, but it is not installed by default.

  3. Turn on the Bluetooth connectivity on your Nokia N97 device.

  4. Run the Ecmt connectivity application on your Nokia N97 device.

    See Starting EcmtAgent on an Nokia N97 device.

  5. Set up Bluetooth connection with your Nokia N97 device as follows:

    1. Turn on the Bluetooth connectivity of your PC, scan and pair the Nokia N97 device, and discover available services.

    2. Connect to the Bluetooth Serial port. The Bluetooth services window can be seen in the figure below.

  6. Run the Device Connectivity Tool on the PC by selecting Start > All Programs > Nokia Developer Tools > N97 SDK > v1.0 > Tools > Device Connection.

    1. In the Port tab of the Device Connectivity tool, select the COM port provided by Bluetooth connection with the phone (Bluetooth serial port).

    2. Click the Connect button.

    3. Select Tools > Diagnostics. The Diagnostics window appears.

  7. Run the Redirector MIDlet on the Nokia N97 device. A “Redirector MIDlet: redirection is started” message should appear in the Diagnostics window.

  8. Run the MIDlet under test. Messages sent to System.out and System.err will start to appear once the 110 symbol buffer becomes full.