MOBILE

BlackBerry Java Application : installing the Java Development Kit (JDK), downloading Eclipse with the JDE plugin

9/14/2012 3:44:36 AM

Time for action - installing the Java Development Kit (JDK)

  1. The installation starts off with the End User License Agreement for the Java Development Kit. If you enjoy reading legalese, feel free to read through it, but if you are like most people, just click on the Accept button and go on.

  2. The next screen shows several components that could be installed. All of the components are enabled by default, but you really need only the public JRE and the Development Tools. The Source Code can help with debugging at times, but in all honesty you probably won't ever use it. Demos and Samples can be helpful for understanding Java in general, but won't have any of the BlackBerry-specific topics in it. The Java DB definitely won't be used on any BlackBerry applications.

  3. After this, the setup program does a lot of work before stopping at another screen asking where to put the install files. I recommend accepting the defaults.

  4. This package is also installing the JRE, which does integrate with browsers, so you might get a warning screen if you have the browser window still open from where you downloaded the JDK. If this is the case, exit this, or any other applications listed, and continue with the setup. If you check the checkbox, the setup program will shut the applications down for you.

  5. From this point on, the installer does its thing and finishes the install. Look Microsoft, no reboot required!

What just happened?

In this step we installed the Java Development Kit (JDK). The JDK is used for all Java development, but an essential part of the BlackBerry development environment includes the Java compiler. This particular package that we picked will also install the Java Runtime Edition (JRE). The JRE is required to run any Java application and includes the Java Virtual Machine (JVM), or runtime engine.

Introducing the BlackBerry Developer Zone

Before getting focused on creating applications, I think it's wise to present the official source for information, support, downloads, and forums for BlackBerry-the BlackBerry Developer Zone at http://www.blackberrydeveloper.com. Here you can find the official documentation, a knowledge base full of great articles, support forums, and much more. Specifically, here are some great resources to go for more information in the future:

You will need to register for the BlackBerry Developer Community in order to download any of the tools, SDK, simulators, or in some cases, documentation. So, let's head over to https://www.blackberry.com/CorpDevZone/register.do and get that done. Registration is free.

The registration process is typical and straightforward. The e-mail address you give on this page will serve as your login ID at the website from this point forward. After supplying the information on the registration page, the system will send an e-mail to the e-mail address given with a link that you must click on to activate your account.

The e-mail should arrive quickly, and once you click on the link to activate your account you're ready to actually download the files and get started!

Downloading and installing Eclipse

Now that you've got Java installed, let's start installing Eclipse! There are two different ways to install the software. You can download Eclipse directly from the Eclipse website at http://www.eclipse.org/downloads/packages/release/ganymede/sr2 or you can download a version from the BlackBerry Developer Zone, which is already pre-bundled with the BlackBerry JDE component plugin. You can download it from http://na.blackberry.com/eng/developers/javaappdev/javaeclipseplug.jsp.

I recommend using the pre-bundled version of Eclipse. This pre-bundled version includes version 4.5 of the SDK, but more importantly it is much easier to install than installing Eclipse and the component pack separately.

Time for action - downloading Eclipse with the JDE plugin

  1. On the BlackBerry website the pre-bundled version is called the Full Installer and has a large Download Now button, as shown in the following screenshot. Click on the Download Now button to get started.

  2. When you click on the Download Now button, you will be shown another registration page. I know you already filled out all of that information, but you have to do it again, and again, and again. It's rather annoying really. Be sure to change the radio button at the bottom confirming that you are not lying to them because it defaults to No and won't proceed until changed to Yes.

  3. Next, you will find one or two license agreements that you must accept (depends on which version you download). After all that, you can finally download the setup file.

What just happened?

The Eclipse Full Installer includes both the BlackBerry 4.5 components as well as the Eclipse installation already integrated together. We chose to install the Full Installer.

Notice that you can download just the individual component package for each version of the BlackBerry SDK from here as well. You don't need to install Eclipse over and over for each different version of the SDK. Instead, you can download just the component pack for only that version and add the component pack to your Eclipse installation.

There is a way to download and install the component packs directly within Eclipse (which I think is easier), but we will do that later.


Other  
  •  BlackBerry Java Application : Installing the Development Environment - downloading the Java Development Kit
  •  iOS 6 Playing It Safe (Part 1)
  •  iOS 6 Playing It Safe (Part 2)
  •  Planet Of The Apps – Travel (Part 1)
  •  Planet Of The Apps – Travel (Part 2)
  •  Planet Of The Apps – Travel (Part 3)
  •  Top 10 Smartphones August – September (Part 1) - Samsung Galaxy S III, HTC One X, Apple iPhone 4S,Nokia Lumia 800,Sony Xperia S
  •  Top 10 Smartphones August – September (Part 2) - Huawei Ascend P1, HTC Radar, Samsung Galaxy Note,BlackBerry Bold 9900
  •  Got Yourself A Fancy New Nexus Flexus
  •  Nokia 808 Pureview - Best For Convergists
  •  Tough Phones : Work or play in harsh environments
  •  Take Your Office On The Go
  •  Tablets For All Budgets (Part 3) - Apple New iPad, Asus Transformer Infinity TF700
  •  Tablets For All Budgets (Part 2) - Samsung Galaxy Tab 7.7, Apple iPad 2, Samsung Galaxy Tab 2, Acer Iconia Tab A700
  •  Tablets For All Budgets (Part 1) - Google Nexus 7, Motorola Xoom 2, Acer Iconia Tab A200
  •  Samsung Galaxy SIII : Live up to the hype (Part 3)
  •  Samsung Galaxy SIII : Live up to the hype (Part 2)
  •  Samsung Galaxy SIII : Live up to the hype (Part 1)
  •  Samsung Galaxy S III - Samsung's Most Successful Phone
  •  Idisk - The Most Versatile Component Of Mobileme (Part 2)
  •  
    Top 10
    Nikon 1 J2 With Stylish Design And Dependable Image And Video Quality
    Canon Powershot D20 - Super-Durable Waterproof Camera
    Fujifilm Finepix F800EXR – Another Excellent EXR
    Sony NEX-6 – The Best Compact Camera
    Teufel Cubycon 2 – An Excellent All-In-One For Films
    Dell S2740L - A Beautifully Crafted 27-inch IPS Monitor
    Philips 55PFL6007T With Fantastic Picture Quality
    Philips Gioco 278G4 – An Excellent 27-inch Screen
    Sony VPL-HW50ES – Sony’s Best Home Cinema Projector
    Windows Vista : Installing and Running Applications - Launching Applications
    Most View
    Windows 7 : Managing the BCD Data Store
    Tiffen Steadicam Smoothee, Arcam Rpac, TP Link Wireless N Nano Router, Aftershokz Sports
    GIGABYTE GA-F2A75M-D3H - Perfect Choice For A Budget System
    SharePoint 2010 : PerformancePoint Services (part 1) - PerformancePoint Central Administration Settings
    Web running out of addresses
    ASP.NET 4 : Data Source Controls (part 2) - Parameterized Commands
    Controlling Access to Files and Folders with NTFS Permissions
    Year End 2012 - Reviews & Rankings (Part 1)
    Optimisation Utility: Ashampoo Winoptimizer 9.0
    One For All And All In One (Part 1) - Asus ET2701INKI-B046C
    Crucial M4 mSATA 6Gbps SSD 256GB
    Windows Server 2003 : Active Directory - Understanding Operations Master Roles
    Videography – The Devil's In The Details
    Cook Gives No Grist To Rumour Mill
    10 Best products of the past 200 issues (Part 3)
    Can Software Be Patented?
    SQL Server 2008 : General T-SQL Performance Recommendations
    Oracle Coherence 3.5 : Testing and debugging Coherence applications
    Cooler Master Seidon 120M - Won’t Break The Bank Or Any Records
    Algorithms for Compiler Design: INTERMEDIATE CODE GENERATION