Hot Swap, the ability to reload an application on to a running simulator without having to stop and start the simulator is now part of the 5.0 BlackBerry Simulator.
In the 5.0 JDE you need to change your Simulator preferences:
Toggle the “Reuse Simulator” checkbox on.
If the Reuse Simulator checkbox is greyed out, that simulator is not compatible with Hotswap.
Then when debugging your application you can at any time change the code and redeploy without restarting the simulator by going to Debug>Restart or pressing Shift-F9.
When using the JDWP you will need to stop the JDWP before updating code, then reconnect with the JDWP.
BlackBerry Java Plugin or BlackBerry Web Plugin
No changes are needed. You no longer need to close your simulator. While the simulator is open, simply make changes to your code, and press debug and it will automatically redeploy the change to the running simulator.
Changes from earlier Simulators:
1) If an application is loaded on to a simulator using javaloader, in pre 5.0 simulators it would remain in memory when the simulator is restarted or shutdown/started. Starting with 5.0 the default behaviour is to drop the application from memory. If you wish to have your simulator keep the application in memory, you must add the following to the commandline used to invoke the simulator:
2) When selecting a name for a library module, ensure that its spelling is the same as that used in the code. 5.0 simulators using hotswap are case sensitive. A cod file called aBc.cod will not be found by a module looking for abc.cod.