Reusing an SDK instance to run MIDlets

You can select the reusing of the same SDK instance to run all the MIDlets you launch, instead of launching a new SDK each time you invoke a MIDlet. Reusing an SDK instance is faster than starting a new instance every time you want to run a MIDlet. However, starting a new SDK each time you invoke a MIDlet allows you to compare and communicate between MIDlets.

Invoking a MIDlet on the same SDK instance

To reuse the same SDK instance every time you invoke a MIDlet, select Invoke MIDlets on a single SDK instance (faster). If more than one SDK is running, this option uses the latest SDK instance that was created (typically, the one with the highest number).

When you select this option, verify that the following message opens in the Windows console before you send a MIDlet to the SDK:

Nokia SDK for Java Instance #2000 Ready for Future Connections

If you try to invoke a MIDlet too soon after making this selection, a second SDK instance is started.

Invoking a MIDlet on a new SDK instance

To start a new SDK instance each time you invoke a MIDlet, select Invoke each MIDlet on a new SDK instance. This option comes in handy when you want to make a side-by-side comparison of how two MIDlets run.

Even if you use the Invoke MIDlets on a single SDK instance (faster) option, you can always start a new SDK instance manually without having to change that option. Perform one of the following actions:

  • Select Start menu > All Programs > Nokia Developer Tools > Nokia SDK 2.0 for Java > Nokia SDK 2.0 for Java Emulator.

  • In the Command line , enter emulator -Xnew.