How to Add a Simulator to the BlackBerry JDE

I am currently fixing a problem with one of our BlackBerry applications. The problem only shows on the 8330 devices and while trying to debug it, I realized that the 8330’s simulator was not showing in the JDE’s list of available simulators.

In this post I will explain what I did to add the 8330’s simulator to the list of available profiles.

After downloading the 8330 simulator pakage from the BlackBerry developers site and installing it, I opened the SimPackage-JDE.rc file located in the JDE installation folder (You can open it with a text editor). This file, which contains a couple of entries per simulator profile, is the settings file used by the JDE to run the different simulators. This is how the entries look:

## RIM Java Development Environment
# Settings file

SimulatorCommand7130-JDE=<install_dir>\fledge.exe /app=Jvm.dll /handheld=7130 /session=7130 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:7130.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A

SimulatorDirectory7130-JDE=<install_dir>
SimulatorCommand7130e-JDE=<install_dir>\fledge.exe /app=Jvm.dll /handheld=7130e /session=7130e /app-param=DisableRegistration /app-param=JvmAlxConfigFile:7130e.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A
SimulatorDirectory7130e-JDE=<install_dir>
SimulatorCommand8100-JDE=<install_dir>\fledge.exe /app=Jvm.dll /handheld=8100 /session=8100 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:8100.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A
SimulatorDirectory8100-JDE=<install_dir>

As you can see, each simulator’s settings consist of an entry that specifies the command used to run the simulator and an entry that specifies the folder where the simulator resides.

Knowing this, I created two more entries form my just-installed simulator. In this case, instead of using the <install_dir> placeholder, I used the actual path to the simulator. I also used the command line parameters for the 8330 simulator, which I grabbed from the 8330.bat file in C:\Program Files\Research In Motion\BlackBerry Smartphone Simulators 4.3.0\4.3.0.124 (8330):

SimulatorCommand8800-JDE="C:\Program Files\Research In Motion\BlackBerry Smartphone Simulators 4.3.0\4.3.0.124 (8330)\fledge.exe /app=Jvm.dll" /handheld=8330 /session=8330 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:8330.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A
SimulatorDirectory8800-JDE="C:\Program Files\Research In Motion\BlackBerry Smartphone Simulators 4.3.0\4.3.0.124 (8330)"

After doing this, the 8330’s profile showed in the JDE’s simulators list:

image

E-mail   Permalink    Comments(2)   Trackback

Tags:

Comments

By Matt Montag  on Friday, June 12, 2009

I thought I was going to need this, but the 8330-4.3.0.124 simulator appeared in the JDE simulator list after I installed it.  Hmm...

By cliff g.  on Wednesday, September 23, 2009

thanks so much for sharing your insight!!