Integrate nokia series40 sdk with eclipse

Steps to download and install the Series40 SDK and integrate with eclipse:
1. Download the Series40 Sdk from Nokia SDK
2. Series 40 sdk runs only on windows.
3. Extract the file and structure should be something like:

4. The folder contains a exe , zip and txt file.
5. Run the exe to install the SDK.
6. Once done extract the inside main folder. It contains a installation Pdf .
7. Open the Pdf and follow the instructions given to integrate with the Eclipse.
8. Once done, restart the eclipse.

Create the project in eclipse:
1. Create a new project J2ME -> J2ME Midlet Suite.
2. Create new Class “hello world”.
3. Type in the following code :

import javax.microedition.midlet.MIDlet;
import javax.microedition.lcdui.*;

public class HelloWorld extends MIDlet implements CommandListener {

public HelloWorld() {
// Display
private Display display;
// Main form
private Form form;
// For the message
private StringItem stringItem;
// For the exit command
private Command exitCommand;

public void commandAction(Command command, Displayable displayable) {
if (displayable == form) {
if (command == exitCommand) {

public void startApp() {
// Create form
stringItem = new StringItem("Hello", "Hello World!");
form = new Form(null, new Item[] {stringItem});
exitCommand = new Command("Exit", Command.EXIT, 1);

// Get display for drawning
display = Display.getDisplay(this);

// Your MIDlet should not call pauseApp(), only system will call this life-cycle method
public void pauseApp() {

// Your MIDlet should not call destroyApp(), only system will call this life-cycle method
public void destroyApp(boolean unconditional) {

public void exitMIDlet() {


Run the project in Eclipse:
Right click on the HelloWorld Class. Select Run As -> Emulated J2ME Midlet .

The emulator takes around 30-45 secs to start.

Once the emulator is started following screen will be up: