Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Develop eSWT-based applications for the Nokia S60 smartphone

Learn to write a mobile Sudoku game for the S60 platform

Peter Nehrer (pnehrer@ecliptical.ca), Freelance Writer, Ecliptical Software
Peter Nehrer is a software consultant specializing in Eclipse-based enterprise solutions and development tools. He is a committer on the Eclipse Modeling Framework Technology (EMFT) project (Mint component lead). He holds a master's degree in computer science from the University of Massachusetts at Amherst, Mass.

Summary:  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.

Date:  16 Dec 2008
Level:  Intermediate PDF:  A4 and Letter (756 KB | 31 pages)Get Adobe® Reader®

Activity:  9667 views
Comments:  

Before you start

About 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.

Frequently used acronyms

  • API — Application Programming Interface
  • CDC — Java Connected Device Configuration
  • CLDC — Connected Limited Device Configuration
  • DRM — Digital Rights Management
  • DSDP — Device Software Development Platform
  • eRCP — Embedded Rich Client Platform
  • eSWT — Embedded Standard Widget Toolkit
  • FP — Foundation Profile
  • GC — Graphical Context
  • GUI — Graphical User Interface
  • IDE — Integrated Development Environment
  • J2SE — Java 2, Standard Edition
  • JAD — Java Application Descriptor
  • JDT — Java Development Tools
  • ME — Java Platform, Micro Edition
  • MID — Mobile Information Device
  • MIDP — Java Mobile Information Device Profile
  • MTJ — Mobile Tools for Java
  • OMA — Open Mobile Alliance
  • PDE — Plug-in Development Environment
  • SDK — Software Developer Kit
  • SWT — Standard Widget Toolkit

Topics covered in this tutorial include:

  • Overview of the S60 Platform and eSWT
  • Obtaining the S60 Platform SDK from Nokia
  • Setting up the Eclipse SDK and Mobile Tools for Java (MTJ)
  • Creating MIDlets
  • Programming with eSWT API
  • Deploying MIDlet onto an S60 emulator

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.

See Resources to download each of these technologies, with the exception of Microsoft Windows.

1 of 9 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Open source
ArticleID=357983
TutorialTitle=Develop eSWT-based applications for the Nokia S60 smartphone
publish-date=12162008
author1-email=pnehrer@ecliptical.ca
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.