×
Namespaces

Variants
Actions
Revision as of 23:41, 29 November 2008 by nokia_gourab (Talk | contribs)

Getting started with Java ME

From Nokia Developer Wiki
Jump to: navigation, search

Getting your first Java ME application (MIDlet) running on a real device requires a number of steps. This Wiki page is a guide through that process. As it is targeted at first-time MIDlet developers, some things are simplified, and more detailed information can be found elsewhere.


Quick Start Using J2ME Toll Provided By Sun Java

Screen Sorts Make Easy To Learn J2Me For You

link Quick Start

Quick Start With Sun Java J2ME Tool Screen Sort Representation

link Quick Start In j2Me 

Contents

Required hardware

Because of the requirements of Nokia's development tools, your development computer has to be a PC running Microsoft Windows 2000 (SP 4) or Microsoft Windows XP (SP 2).


Required software for S60

For Java ME development for the S60 platform, the following tools are needed:

  • a Java SE (Standard Edition) Development Kit (JDK)
  • a Wireless Toolkit
  • a Nokia SymbianOS/S60 SDK for Java
  • an IDE plus an add-on for Java ME development (Nokia supports Eclipse + EclipseME and NetBeans + Mobility Pack)
  • documentation

For details of installing the required tools, see Installing Java ME development tools for S60.


Emulators and SDKs for Series 40 and Series 80

As in the case of S60 development, use a PC running Windows 2000 or Windows XP, and the Eclipse or NetBeans IDEs, with the associated add-on for Java ME development (EclipseME or Mobility Pack). See Installing Java ME development tools for S60 for download locations.


Coding and compiling your first MIDlet

See Hello World in Java ME and Creating your first MIDlet using EclipseME.


Typical pitfalls

Compiling the Java ME code with wrong Java compliance option

The correct compliance is 1.3 or 1.4. Compiling with 5.0 or 6.0 compliance makes it impossible to install the MIDlet.

Compiling and packaging the MIDlet for incorrect CLDC or MIDP version

This is especially true when using Sun Wireless Toolkit, which by default builds the MIDlet for MIDP 2.1. However, most of the current phones have only MIDP 2.0 available. (Note, that you can install on a phone a MIDlet with lower CLDC/MIDP version than what the phone supports, but you cannot install a MIDlet with higher CLDC/MIDP version on the phone. Check the supported CLDC and MIDP versions on FN device specification pages.)

526 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×