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

Configure additional RIM cod files in the BlackBerry Simulator

by Retired ‎02-17-2010 01:28 PM - edited ‎02-18-2010 10:01 AM (2,723 Views)

Summary


This article applies to the following:

  • 4.0 BlackBerry® Simulator


Details


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.



<library id="net.rim.blackberry.crypto3">
<name>BlackBerry Crypto 3 Library</name>

<directory SystemSize="normal">Java</directory>
<directory SystemSize="small">Java8M</directory>

<fileset Java="1.0">
<files>
net_rim_crypto_3.cod
</files>
</fileset>
</library>



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:



<Application>net.rim.blackberry.crypto3</Application>



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:

    <Application>net.rim.java.smime</Application>
  • 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.

Contributors
Users Online
Currently online: 15 members 709 guests
Please welcome our newest community members: