{"id":187,"date":"2009-09-23T17:28:49","date_gmt":"2009-09-23T17:28:49","guid":{"rendered":"http:\/\/aasims.wordpress.com\/?p=187"},"modified":"2025-04-29T13:13:08","modified_gmt":"2025-04-29T13:13:08","slug":"blackberry-application-development-tutorial-part-2","status":"publish","type":"post","link":"https:\/\/aasimnaseem.com\/blog\/blackberry-application-development-tutorial-part-2\/","title":{"rendered":"BlackBerry Application Development Tutorial (Part-2)"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-204\" title=\"bb+ec\" src=\"https:\/\/AasimNaseem.com\/wp-content\/uploads\/2009\/09\/bbec.jpg\" alt=\"bb+ec\" width=\"199\" height=\"173\" \/><\/p>\n<p>Hello All,<\/p>\n<p>Hope that everything is going good \u2026<\/p>\n<p>Today I\u2019m going to tell you some basic requirements 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\u2026 don\u2019t think about hello world \u2026 we will use some other name<br \/>\n<!--more--><\/p>\n<p><strong>Note:<\/strong> This tutorial is a part of a series of my tutorials on BlackBerry application development; so far we have discussed the following.<\/p>\n<ul>\n<li><a href=\"https:\/\/aasimnaseem.com\/index.php\/2009\/09\/22\/blackberry-application-development-introduction\/\">Introduction :: BlackBerry Application Development (Part -01)<\/a><\/li>\n<li><a title=\"BlackBerry Application Development Tutorial\u00a0(Part-2)\" href=\"https:\/\/aasimnaseem.com\/index.php\/2009\/09\/23\/blackberry-application-development-tutorial-part-2\/\">Setting Up Your System :: BlackBerry Application Development Tutorial\u00a0(Part-2)<\/a><\/li>\n<li><a href=\"https:\/\/aasimnaseem.com\/index.php\/2009\/10\/17\/blackberry-application-development-tutorial-part-3\/\">Your First Application ::\u00a0BlackBerry Application Development Tutorial\u00a0(Part-3)<\/a><\/li>\n<li><a href=\"https:\/\/aasimnaseem.com\/index.php\/2011\/02\/23\/creating-a-webicon-blackberry-application-development-tutorial-part-4\/\">Creating A WebIcon ::\u00a0BlackBerry Application Development Tutorial\u00a0(Part-4)<\/a><\/li>\n<\/ul>\n<p>OOk,friends \u2026 Let&#8217;s start\u2026. First of all, some good news: BlackBerry application development is java based \u2026 Heyyy, cheersss&#8230; You don\u2019t need to have extra machine to develop applications or install simulator type tool like in case of iPhone&#8230; if you are a java developer, and already doing java development, then u just need to install few more things to jump into BlackBerry\u2019s world \u2026<\/p>\n<p>My English isn\u2019t too good but my java language is somehow\u2026 so don\u2019t concentrate what I\u2019m saying \u2026 just focus on what I want to teach \u2026 else you will find lot of EnglishGrammarException or SpellExceptions&#8230; \ud83d\ude42<\/p>\n<p>For those who are already doing Java development, skip this step; for those who are new to Java, they must download and install the Java Development Kit (JDK). Currently, version 6 is the latest, so you must use it. Next, we will use Eclipse IDE for our development and debugging. Eclipse is free with many useful plug-ins. The next step is to download BlackBerry JDEs and a plug-in of BlackBerry for Eclipse and a simulator for the device.<br \/>\nSo open your downloader and start downloading required items from following links<\/p>\n<ul>\n<li><a href=\"http:\/\/java.sun.com\/javase\/downloads\/index.jsp\">java development kit (JKD).<\/a><\/li>\n<li><a href=\"http:\/\/www.eclipse.org\/downloads\/\">Eclipse<\/a><\/li>\n<li><a href=\"http:\/\/na.blackberry.com\/eng\/developers\/resources\/devtools.jsp\">BlackBerry JDEs.<\/a><\/li>\n<li><a href=\"\/na.blackberry.com\/eng\/developers\/downloads\/jde.jsp\">BlackBerry JDE plug-in for eclipse<\/a><\/li>\n<li><a href=\"\/na.blackberry.com\/eng\/developers\/downloads\/simulators.jsp\">Device Simulator <\/a>(try to download latest version)<\/li>\n<\/ul>\n<p>After downloading JDK install it to your prefer location, then edit a \u201cpath\u201d environment variable entry, append the [java-instal-dir]\\bin \u2026 Like in my case, I appended the entry c:\\Program Files\\Java\\jdk1.5.0_06\\bin in the path variable after placing a semicolon in the previous entry.<\/p>\n<p>Start your Eclipse that you just downloaded (or, in case you are already using it, just open it). It&#8217;s time to configure your Eclipse with BlackBerry tools.<br \/>\n<strong>1. Install the JRE<\/strong><\/p>\n<ul>\n<li>Click Window &gt; Preferences from the main menu in Eclipse<\/li>\n<li>Click Java &gt; Installed JREs<\/li>\n<li>Click Add.<\/li>\n<li>Fill the fields:\n<ul>\n<li>JRE type = Standard VM<\/li>\n<li>JRE name = \u2018RIM JRE\u2019<\/li>\n<li>JRE home = path to the JDK (eg. C:\\jdk1.6.0_06)<\/li>\n<li>Default VM Arguments leave blank<\/li>\n<\/ul>\n<\/li>\n<li>In the JRE system libraries box, select all of the entries and click Remove.<\/li>\n<li>Click Add External JARs and navigate to the lib directory of the BlackBerry JDE (eg. C:\\jde\\lib).<\/li>\n<li>Select the file net_rim_api.jar.<\/li>\n<li>Back in the JRE system libraries box, select the new entry for net_rim_api.jar<\/li>\n<li>Click OK to close the Add JRE window.<\/li>\n<li>In the Installed JREs window, check the box next to the new RIM JRE entry.<\/li>\n<li>Click on the prior entry in this list (for jre1.6.0_06) and click the Remove button.<\/li>\n<li>Click OK to close the Preferences window.<\/li>\n<\/ul>\n<p><strong>2. Set the JDK Compliance Level<\/strong><\/p>\n<ul>\n<li>Click Window &gt; Preferences from the main menu in Eclipse<\/li>\n<li>Click Java &gt; Compiler<\/li>\n<li>Change the \u2018Compiler compliance level\u2019 to 1.6.<\/li>\n<li>Click OK to close the Preferences window.<\/li>\n<\/ul>\n<p><strong>3. Increase debugger timeouts<\/strong><\/p>\n<ul>\n<li>Click Window &gt; Preferences from the main menu in Eclipse<\/li>\n<li>Click Java &gt; Debug<\/li>\n<li>Increase the launch timeout by a factor of 10 (eg. set to 200000)<\/li>\n<li>Increase the Debugger timeout by a factor of 5 (eg. set to 15000)<\/li>\n<li>Click OK to close the Preferences window.<\/li>\n<\/ul>\n<p>Your Eclipse is ready to write your first program for BlackBerry.<\/p>\n<p>In the next post I will illustrate the basic structure of BB&#8217;s application and main program.<\/p>\n<p>Cheers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello All, Hope that everything is going good \u2026 Today I\u2019m going to tell you some basic requirements 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\u2026 don\u2019t think about hello world&#8230;<\/p>\n","protected":false},"author":1,"featured_media":5210,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[207,214,291,581],"class_list":["post-187","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blackberry","tag-blackberry-application-development","tag-blackberry-jde-plug-in-for-eclipse","tag-configuring-eclipse-with-blackberry","tag-java"],"_links":{"self":[{"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/posts\/187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/comments?post=187"}],"version-history":[{"count":3,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/posts\/187\/revisions"}],"predecessor-version":[{"id":5212,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/posts\/187\/revisions\/5212"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/media\/5210"}],"wp:attachment":[{"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/media?parent=187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/categories?post=187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aasimnaseem.com\/blog\/wp-json\/wp\/v2\/tags?post=187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}