Configuring the BBM server simulator

If you plan to use the BlackBerry 10 Device Simulator to test your BlackBerry Messenger connected app, you need to configure your development environment to support BBM.

Install Java

The first thing you need to do is download and install the Java SE 6 update 37 or later (JDK or JRE, 32-bit or 64-bit).

The BBM server simulator does not support Java 7.

Next, you set up Java environment variables and unlimited strength encryption.

Set up Java environment variables

  1. In Windows, open the Environment Variables dialog box.
  2. Set the JAVA_HOME system variable to the directory where you installed Java (for example, in the 32-bit version of Windows, C:\Program Files\Java\jre6.
    (In the 64-bit version of Windows, the default path for 32-bit Java is C:\Program Files (x86)\Java\jre6\).
  3. In the Path environment variable, add %JAVA_HOME%bin; to the beginning of the string.
  4. Click OK to save and close the Environment Variables dialog box.
  5. Verify that your environment variables are set correctly.
    1. Open a command prompt.
    2. Type java -version and verify that the Java version is the same as the version that you set in the environment variable:
      java version "1.6.0_38"
      Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
      Java HotSpot(TM) Client VM (build 20.13-b02, mixed mode, sharing)

Set up unlimited strength encryption

The Java Cryptography Extension (JCE) enables encryption by using a key size of greater than 128 bits.

You must live in an eligible country to enable this functionality. You can find more information in the readme.txt file contained in the following .zip file.

  1. Download the file from the Oracle website.
  2. Extract the contents of the file to your computer.
  3. In the security directory of the system JRE (for example, C:\Program Files (x86)\Java\jre6\lib\security\ ), replace the local_policy.jar and US_export_policy.jar files with the files you extracted.

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus