Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Testing and Deployment

How To Use Hot Swap with the BlackBerry Simulator

by BlackBerry Development Advisor on ‎07-15-2010 09:25 AM - edited on ‎09-20-2010 05:22 PM by Retired (4,844 Views)

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.

 

JDE 5.0

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.

2318iC8204F63F3272A88

 

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.

 

JDWP

 

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:

/JvmKeepCodeInFS

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.

Users Online
Currently online: 20 members 939 guests
Please welcome our newest community members: