Skip to main content


developerWorks  >  Open source  >

Develop eSWT-based applications for the Nokia S60 smartphone

Learn to write a mobile Sudoku game for the S60 platform

developerWorks

Level: Intermediate

Peter Nehrer (pnehrer@ecliptical.ca), Freelance Writer, Ecliptical Software

16 Dec 2008

Register now or sign in using your IBM ID and password.

The Java™ Platform, Micro Edition (Java ME) is a ubiquitous application platform for embedded devices, and many modern mobile phones are capable of running these types of applications. The embedded Standard Widget Toolkit, or eSWT, is an Eclipse technology that can be used to develop native-looking Java applications for a variety of mobile phones. eSWT is developed as part of the embedded Rich Client Platform (eRCP) project, which, as a whole, is only supported on devices running Microsoft® Windows® Mobile and the Windows CE operating system. However, stand-alone eSWT libraries are available on all devices running a recent version of Nokia's S60 platform — currently one of the leading smartphone platforms in the world. This tutorial demonstrates how to develop eSWT-based applications with the help of the newly released Eclipse Mobile Tools for Java (MTJ) and Nokia's S60 SDK.

In this tutorial

In this tutorial, we develop a simple Sudoku game application based on eSWT. First, we learn about the eSWT framework, its API and its architecture. We also find how to obtain and configure the tools necessary for the job — namely, the Eclipse SDK with the Mobile Tools for Java (MTJ), as well as Nokia's S60 Platform SDK. You will then create a MIDlet project in Eclipse and use the eSWT API to develop the game. Finally, we build and package the final product and deploy it into a software-based mobile-phone emulator provided with the S60 Platform SDK.


Prerequisites

This tutorial is for Java developers familiar with the Eclipse IDE. Familiarity with the Standard Widget Toolkit (SWT) is useful, but not required. Prior experience with embedded Java programming is not required.


System requirements

Java 2 Standard Edition
The Java 2 Standard Edition V5 or greater is available from Sun Microsystems.
Eclipse Ganymede
Find Eclipse V3.4 platform at the Eclipse Foundation. Eclipse is bundled in several versions. For your convenience, download Eclipse IDE for Java Developers or Eclipse IDE for Java EE Developers.
Eclipse Mobile Tools for Java (MTJ)
Find the latest release of Eclipse Mobile Tools for Java (MTJ), V0.9, at the Eclipse Foundation.
Nokia S60 Platform SDK, 3rd Edition
Find the Nokia S60 Platform SDK, 3rd Edition with Feature Pack 2 at Forum Nokia. This tutorial shows how to install the SDK.
Microsoft Windows XP or Windows Vista®
The Nokia S60 Platform SDK operates on Windows only, and as a result, you may not develop S60 Platform applications using Mac OS X or Linux®. Some developers at Forum Nokia have reported success running the SDK under Wine, but doing so is outside the scope of this tutorial.


Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed


My developerWorks needs you!

Connect to your technical community