Install SDK + PhoneGap For BlackBerry

Posted: March 13, 2012 in Android Posts
Tags: , , , , ,
  • 1. Requirements For BlackBerry

    • Windows XP (32-bit) or Windows 7 (32-bit and 64-bit) or Mac OSX 10.6.4+

    For 4.x devices check out this guide.

  • 2. Install SDK + PhoneGap

    (Windows Only) Download and install Sun JDK (32-Bit Version). Add it to your PATH variable.

    (Windows Only) Download and extract Apache Ant. Add it to your PATH variable.

    Download BlackBerry WebWorks Smartphone SDK for BlackBerry development and/or BlackBerry WebWorks Tablet OS SDK for Playbook development. Keep note of the directories you install these SDKs.

    Download the latest copy of PhoneGap and extract its contents to a location of your choice.

  • 3. Setup New Project

    • Open up a command prompt/terminal and navigate to where you extracted PhoneGap. CD into the PhoneGapBlackBerry directory.
    • Create a PhoneGap BlackBerry and PlayBook project. Type ant create -Dproject.path=followed by the location you wish to create your project into the command prompt/terminal.
    • Change to the newly created directory located at C:\Dev\bbw\sample.
    • Open up the project.properties file with your favourite editor and change the lines BlackBerry.bbwp.dir= and PlayBook.bbwp.dir= to equal the respective install locations of the SDKs you downloaded earlier.
  • 4. Hello World

    Build the PhoneGap sample project by typing ant target build in your command prompt/terminal while you are in your project’s directory. Replace the target with either blackberry or playbook. Note this is the sample PhoneGap project and not a basic hello world application. You can go edit the index.html file located in the www directory of your project to make it say Hello World if you wish.

  • 5A. Deploy to Simulator (Windows Only)

    • While in your project directory, in command prompt/terminal type ant target load-simulator. Replace the target with either blackberry or playbook.
    • Press the BlackBerry button on the simulator, go to downloads and you should see your app loaded there.
  • 5B. Deploy to Device (Windows and Mac)

    • You have to have your signing keys from RIM by filling out this form.
    • While in your project directory, in command prompt/terminal type ant target load-device. Replace the target with either blackberry or playbook.
    • Press the BlackBerry button on the simulator, go to downloads and you should see your app loaded there.
  • Done!

    You can also checkout more detailed version of this guide here.

Advertisements
Comments
  1. hd televisions says:

    I’m looking at some of your respective blog posts about this internet site and I believe this internet site is very instructive! Keep publishing.

  2. Marcela Satterlee says:

    Hey! Do you understand if that they make any plugins to help with Search engine optimization? I’m looking to get my website to rank for a few targeted search phrases but I am not seeing great success. If you understand of just about any please discuss. Cheers!

  3. Attorney Tax says:

    Excellent goods from you, man. I’ve keep in mind your stuff prior to and you are simply extremely great. I really like what you’ve bought right here, certainly like what you’re saying and the way by which you say it. You’re making it enjoyable and you continue to care for to keep it sensible. I can’t wait to read much more from you. This is actually a tremendous web site.

  4. Sung Auckerman says:

    This video clip post is actually impressive, the audio quality and the picture quality with this tape article is honestly amazing.

Leave a Reply

Please log in using one of these methods to post your comment:

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