NOTE: The following steps apply to version 4.0 of the BlackBerry Simulator.
The 4.0 BlackBerry Simulator is configured to load the default cod files that are loaded onto a BlackBerry wireless device during the manufacturing process. There are classes in the BlackBerry API set that require RIM cod files to be loaded onto a device that are not installed by default.
To load additional RIM cod files in the 4.0 BlackBerry Simulator, locate the cod file in one of the .alx files located in the "simulator" directory under the 4.0 BlackBerry JDE installation directory. The .alx files are text based and can be opened with a text editor. If we were looking for the "net_rim_crypto_3.cod" it would be found in the BlackBerry.alx file.
Once located, note the "id" attribute of the "library" tag. This value is "net.rim.blackberry.crypto3" in the example above.
Open the ####.xml document located in the "simulator" directory under the 4.0 BlackBerry JDE installation directory where #### refers to the BlackBerry model number of the simulator you wish to modify.
Add an "Application" tag to the ####.xml file that contains the "id" tag found in the .alx file. Using the sample above we would add the following:
Once complete, ensure that the simulator for the modified xml document is selected in the BlackBerry JDE. To change the current simulator, select Preferences from the Edit menu of the BlackBerry JDE and then click on the Simulator tab. Select the model number from the profile drop down list that matches the xml document modified in the previous step.
Then select "Erase the simulator's file system." and "Erase the simulator's non-volatile storage." from the File menu of the BlackBerry JDE.
Example: Adding the SMIME package to a 7290.
Edit the 7290.xml file
In between the <SimulatorConfiguration> tags add the following:
Save the file
Select "Erase the simulator’s file system." and "Erase the simulator’s non-volatile storage." from the File menu of the BlackBerry JDE.
Run the simulator
The BlackBerry simulator is now configured to load the additional RIM cod files on its next startup.