Blackberry Development 1: setup environment

Assumption: Windows XP SP3 onward and Blackberry Desktop Software (from the CD with your phone or installed from RIM website)

1. Download and Install

1.1. Java SE JDK

Install it from www.oracle.com/technetwork/java/index.html if not installed.

1.2. Eclipse and BlackBerry JDE Plug-in for Eclipse

There are two BlackBerry development environments produced by RIM: the BlackBerry Java Development Environment (JDE) and the BlackBerry JDE Plug-in for Eclipse.

To use Eclipse to develop for BlackBerry, you’ll need to download Eclipse IDE. However, to make things simple for you, RIM has bundled Eclipse 3.6 (Helios) with the BlackBerry JDE Plug-in with BlackBerry SDK 7.0. You can download the BlackBerry Java Plug-in for Eclipse at http://us.blackberry.com/developers/javaappdev/devtools.jsp.

I already have Eclipse installed, and the following steps are used to download and install the Blackberry Plug-In onto Eclipse:

  • Select Help Menu.
  • From the menu, select the Install New Software menu item. The Install New Software screen will appear.
  • From the Install New Software screen, click the Add button.
  • Paste http://www.blackberry.com/go/eclipseUpdate/3.6/java into the location text box, give it the name “text box,” and click OK .
  • Select the BlackBerry Java Plug-in item and at least one BlackBerry Component Pack item that you want to work.
  • Then follow the onscreen instruction to finish installation. You will have to restart Eclipse IDE in order for the installation to take effect.
1.3. Additional Simulators

In addition to the simulators that are available to you in the BlackBerry Java Plug-in for Eclipse, RIM provides many simulators that are very useful for testing how your application functions with different screen resolutions or input methods. The simulators can be downloaded from the Developer Zone, at http://na.blackberry.com/eng/developers/resources/simulators.jsp

1.4. Code Signing Key

Please register for the code signing keys at http://na.blackberry.com/eng/developers/javaappdev/codekeys.jsp.

The online application form for signing keys is available at https://www.blackberry.com/SignedKeys/

To install your code signing keys in Eclipse with the BlackBerry JDE plug-in, simply import the keys by doing the following:

  • From Eclipse IDE, select Windows from the menu, and then choose Open Perspective Image from book Others.

  • Select the BlackBerry Application Development perspective.
  • Then from the menu, select BlackBerry Image from book Sign Image from book Install New Key. You’ll be prompted to create a new public/private key pair.
  • Click Yes on this dialog, and you’ll be asked for a private key password to protect your key file. Remember this password—you’ll be asked for it every time you want to sign your application. You’ll then be asked to generate some random data by moving your mouse pointer around to increase the radomized calculation.
  • After this, you’ll be asked to enter the PIN you provided when you applied for your keys and the private key password you just entered.
  • For the next two keys, you’ll already have generated your key pair, so you’ll just have to enter the PIN and private key password.

    Once you’ve created your key pair and installed your three keys, the key information is stored in three files:

         sigtool.csk
         sigtool.db
         sigtool.set

    The location of these files is <eclipse_directory>\plugins\net.rim.ejde\vmTools\, where <eclipse_directory> is where you installed your Eclipse environment (i.e., C:\Eclipse\plugins\net.rim.ejde\vmTools\).

    It’s also a very good idea to keep a backup of these files and your original key files if you ever have to rebuild your development environment

From now on, the development environment is ready.

About henry416
I am a computer technology explorer and an university student based on Toronto. If you have any question, please feel free to discuss and comment here

One Response to Blackberry Development 1: setup environment

  1. Pingback: Blackberry Development 2: Steps for an app « Henry Chen

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s