BlackBerry Application Development Tutorial (Part-2)

Posted on Updated on


Hello All;

Hope that everything is going good …

Today I’m going to tell some basics requirement to start your BlackBerry application development. Today you will build your system with all necessary tools and will be ready to write your first program for blackberry … don’t think about hello world … we will use some other name

Note: This tutorial is a part of serieis of my tutorials on blackberry application development; So far we have discussed the followings.

Ok friends … lets starts …. First of all a good news .. BlackBerry application development is java based … heyyyy cheerrrsss … u don’t need to have extra machine to develop applications or install simulator type tool like in case of iPhone … if you are a java developer, and already doing java development then u just need to install few more things to jump into BlackBerry’s world …

My English isn’t too much good but my java language is somehow .. so don’t concentrate what I’m saying … just focus on what I want to teach … else you will find lot of EnglishGrammarException or SpellExceptions .. 🙂

For those who are already doing java development skip this step, for those who are new to java, they must download and install java development kit (JKD). Currently version 6 is latest so you must use it. Next, we will use eclipse IDE for our development and debugging. As eclipse is free with many useful Plug-in. Next step is to download BlackBerry JDEs and a plug-in of blackberry for eclipse and simulator for device.
So open your downloader and start downloading required items from following links

After downloading JDK install it to your prefer location, then edit a “path” environment variable entry, append the [java-instal-dir]\bin … like in my case, I appended the entry c:\Program Files\Java\jdk1.5.0_06\bin in path variable after placing semi-colon in the previous entry.

Start your eclipse you just download (or in case your are already using ,just open it) . its time to configure your eclipse with blackberry tools.
1. Install the JRE

  • Click Window > Preferences from the main menu in Eclipse
  • Click Java > Installed JREs
  • Click Add.
  • Fill the fields:
    • JRE type = Standard VM
    • JRE name = ‘RIM JRE’
    • JRE home = path to the JDK (eg. C:\jdk1.6.0_06)
    • Default VM Arguments leave blank
  • In the JRE system libraries box, select all of the entries and click Remove.
  • Click Add External JARs and navigate to the lib directory of the BlackBerry JDE (eg. C:\jde\lib).
  • Select the file net_rim_api.jar.
  • Back in the JRE system libraries box, select the new entry for net_rim_api.jar
  • Click OK to close the Add JRE window.
  • In the Installed JREs window, check the box next to the new RIM JRE entry.
  • Click on the prior entry in this list (for jre1.6.0_06) and click the Remove button.
  • Click OK to close the Preferences window.

2. Set the JDK Compliance Leve

  • Click Window > Preferences from the main menu in Eclipse
  • Click Java > Compiler
  • Change the ‘Compiler compliance level’ to 1.6.
  • Click OK to close the Preferences window.

3. Increase debugger timeouts

  • Click Window > Preferences from the main menu in Eclipse
  • Click Java > Debug
  • Increase the Lauch timout by a factor of 10 (eg. set to 200000)
  • Increase the Debugger timeout by a factor of 5 (eg. set to 15000)
  • Click OK to close the Preferences window.

Your eclipse is ready to write your first program for blackberry. In the next post i will illustrate basic structure of BB’s application and main program.


16 thoughts on “BlackBerry Application Development Tutorial (Part-2)

    rizwan said:
    September 25, 2009 at 04:42

    Ans you are going great .. i’m waiting for part-3 keep the simplicity as it is …

    rizwan said:
    October 1, 2009 at 08:37

    where is next part .. m waiting ma friend .. why there is a looooooooooong absence ….. where have you been …..

    […] pre-request of this tutorial is BlackBerry Application Development Tutorial (Part-2) for setting your system to start blackberry application […]

    Mohammed Harris said:
    November 18, 2009 at 22:41

    Hi Aasmi,

    Just started to look into blackberry programming using lotus notes and as i have done Java before and have certification in that. I must have trouble interperting the code into Lotus Notes which is possible also. I would be needing your help looking out for best book on this topic.

    tynccrypodo said:
    December 11, 2009 at 21:04

    Fantastic post, I didn’t thought reading this would be so stunning when I read the title!

    10K+ visitors .. « Aasim's Web Corner said:
    May 5, 2010 at 19:10

    […] post that has most number of hits is 2nd part of black berry application development tutorial. It got 1600+ […]

    […] Setting Up Your System :: BlackBerry Application Development Tutorial (Part-2) […]

    Eakle said:
    March 16, 2011 at 21:56

    I really love your article, it’s rock !!

    I just use my first BB 9780 for 1 month and I found that RIM missed a lot of common things in their new OS6 (But they also got a lot of ultra cool functions) and I have to pay for some of that kind of functions such as add2contact so I decided to do the program by myself while I got basic programming skill in Java and C++.

    I googled and found your article, it is luck.

    Thank you !

    blackberry said:
    May 14, 2011 at 16:55

    wow,blackberry its great implememting day by day its features and modules.

    Viraj said:
    July 5, 2011 at 12:44

    Nice post keep goin….

    Ashish said:
    November 11, 2011 at 23:44

    hi Aasim sir,i m new to blackberry.i m developing a Blackberry app that will turn off all the light of blackberry at the time of phone call..i have implemented a lot abd stuck in middle as my trackball light always glows whenever i receive a will keep glowing till phone gets there any way so that i can make my lights off during call.

      Ans responded:
      November 12, 2011 at 22:58

      Need to dig the issue; Like you want no indication by lights when call received; Right?
      Let me see if i can find something;
      Thanks alot for posting your comment here;

    agus @ ROR Developer said:
    December 22, 2011 at 09:45

    its very useful for starters, thanks for providing such valuable information in simplest way. I waiting for part 3

      Ans responded:
      December 22, 2011 at 16:37

      Thanks much for writing to me; I will definitely find time to continue this thread of tutorials;

    dubai web designing said:
    December 27, 2011 at 15:41

    I’ve been exploring for a bit for any high quality articles or weblog posts in this sort of area . Exploring in Yahoo I finally stumbled upon this site. Studying this information So i’m satisfied to convey that I have an incredibly good uncanny feeling I came upon just what I needed. I such a lot indisputably will make certain to do not forget this web site and give it a glance on a relentless basis.

    iphone repair mumbai said:
    August 26, 2013 at 15:36

    I pay a visit everyday some web pages and blogs to
    read articles, however this website gives feature based articles.

Leave a Reply

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

You are commenting using your 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