Setting up system.out and system.err redirection

Steps

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

    See Installing EcmtAgent to an S60 device.

  2. Install the Redirector MIDlet (RedMIDlet) from the Application Manager of your S60 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 S60 device.

  4. Run the Ecmt connectivity application on your S60 device.

    See Starting EcmtAgent on an S60 device.

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

    1. Turn on the Bluetooth connectivity of your PC, scan and pair the S60 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 S60 Developer Tools > 5th Edition 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 S60 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.