Funding for 'IT Lab' Project, Phase 1: Progress of sticker sales. Purchase a sticker to help us reach our target.Updated: 2010-02-28 11:53
Blackberry getting start with Eclipse

In my last article I delivered an introduction to Blackberry Development. Today we will try to configure it with
The environment has lot of benefits over other plug-in and IDE’s. This JDE is entirely free. Moreover,
There are some technical requirements to support the plug-in,
- Windows® XP or Windows Vista™
- Monitor with a resolution of 1024 x 768 or higher
- PC with Intel® Pentium® 4 processor or compatible (3 GHz or higher, 1GB RAM, 1.5GB HD)
- Java 2 SDK, Standard Edition v5.0 (BlackBerry JDE v4.1+)
- Eclipse 3.4.0 or 3.4.1 are supported
After finding the technical requirements, configuring the JDE could be started. Step by step instructions are listed below
1. From the Eclipse Help menu, select Software Update
2. Then move to Software Updates and Add-ons window
3. Select the Available Software tab
4. Click the Add Site button:
a. In the Add Site dialog, type the URL http://www.blackberry.com/go/eclipseUpdate into the location text box
b. Click the OK button, BlackBerry Update Site appears in the Available Software list
5. Select the BlackBerry JDE Plug-in for Eclipse item and one BlackBerry Component Pack item you want to work on
6. Click the Install… button
7. Click the Next > button
8. Check ‘I accept the terms of the license agreement’ radio button after reviewing licenses
9. Click the Finish button to begin installation
10. Run the Eclipse Platform.
This is a very simple configuration. Lets look at how to write the HelloWorld application.
Class 01:
import net.rim.device.api.ui.*;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.container.*;
class SalutationScreen extends MainScreen
{
public SalutationScreen()
{
super();
LabelField applicationTitle =
new LabelField("Hello World Title");
setTitle(applicationTitle);
RichTextField helloWorldTextField = new RichTextField("Hello World!");
add(helloWorldTextField);
}
public boolean onClose()
{
Dialog.alert("Bye World!");
System.exit(0);
return true;
}
}
Class 02:
class HelloWorld extends net.rim.device.api.ui.UiApplication { public static void main(String[] args) { HelloWorld instance = new HelloWorld(); instance.enterEventDispatcher(); } public HelloWorld() { pushScreen(new SalutationScreen()); }}Try to run this application. See whether you can see the helloWorld message.
In the next week we will go through the Blackberry UI design basics.
Post new comment