- BlackBerry JDE 4.1+ (or JDE Component Pack)
- Ant 1.6.x+ (if not using eclipse, or your ide does not support ant)
- Eclipse 3.x (or your ide of choice)
- BlackBerry Ant Tools
Prepare your workspace
This isn’t necessary per-say but you owe it to yourself. First step is adding a user library for the blackberry api. Go to Workspace->Preferences and drill down, Java->Build Path->User Libraries.
Click New and enter “BlackBerry 4.2″ as the library name. Click Add JARs and find your rim api jar (JDE_HOME/lib/net_rim_api.jar). Also be sure to set the javadoc location (JDE_HOME/docs/api). This will give you documentation popups when you do code assist (ctrl+space) and meaningful variable names when using code generation (eg: abstract method stubs).
Setup ant classpath
We will be using a set of ant tasks to automate the build process of our application so download the latest version of BlackBerry Ant Tools and extract the zip somewhere. Where you put bb-ant-tools.jar is up to you but I prefer to put it in my ant lib directory (eclipse/plugins/org.apache.ant_1.6.5/lib). Go to Window->Preferences and drill down, Ant->Runtime. Click Add External JARs and find bb-ant-tools.jar.
That’s it! The workspace is good to go.