J2Me Step by Step

Topics: Java, Java Community Process, Connected Limited Device Configuration Pages: 40 (10826 words) Published: September 17, 2012
J2ME: Step by step
Presented by developerWorks, your source for great tutorials ibm.com/developerWorks

Table of Contents
If you're viewing this document online, you can click any of the topics below to link directly to that section.

1. Tutorial tips 2. J2ME overview 3. Developing J2ME applications 4. J2ME configurations 5. J2ME profiles 6. Setting up your development environment 7. CLDC API 8. Development using KJava GUI components 9. Development using KJava event handling 10. MIDP API 11. CDC API 12. Summary

2 4 8 10 12 14 18 22 26 30 34 35

J2ME: Step by step

Page 1

Presented by developerWorks, your source for great tutorials


Section 1. Tutorial tips Should I take this tutorial?
This tutorial examines in detail the Java 2 Platform, Micro Edition (J2ME) and targets the intermediate developer who has a solid background in Java programming and the concepts of object-oriented design and development. You'll start off by examining the background of J2ME and exploring the J2ME configurations and profiles. You'll then step through the process of setting up your development environment for developing J2ME applications. You'll be introduced to topics such as the K virtual machine (KVM) and KJava API used in conjunction with the Connected Limited Device Configuration (CLDC) API, and the Mobile Information Device Profile (MIDP), which uses CLDC. You will then build a simple application that will allow you to see what you can do with J2ME. You'll use CLDC and KJava to develop a basic drawing application and also a small MIDP application.

To work through this tutorial, you will need the following: * The Java 2 SDK (formerly known as a JDK); J2SE 1.3 SDK is recommended. In particular, you will use the following tools from the Java 2 SDK: java * javac* jar * javadoc (optional) * The Connected Limited Device Configuration (CLDC) reference implementation The K virtual machine (KVM), which is included with the CLDC reference implementation The Mobile Information Device Profile (MIDP) The Palm OS Emulator (POSE) , which you can use to test your KJava applications before deploying to a "real" Palm OS device. A Palm handheld device

* * * * *

Getting help
For technical questions about J2ME, visit the Java Developer Connection . For questions about the content of this tutorial, contact the authors, Shari Jones, at shari_jones@mindspring.com , or Steven Gould, at 73774.2356@compuserve.com . Shari Jones is a freelance journalist and a technical writer. She is a former consultant and has more than ten years experience writing technical articles and documentation covering all areas of the high-tech industry. Steven Gould is an Executive Consultant with CGI Information Systems. Based in Dallas, he J2ME: Step by step Page 2

Presented by developerWorks, your source for great tutorials


is a systems architect and senior developer, focusing primarily on Java and C++ development under Windows and various UNIX platforms. A Sun-certified Java developer, Steven has been using Java since the JDK 1.0 beta release.

J2ME: Step by step

Page 3

Presented by developerWorks, your source for great tutorials


Section 2. J2ME overview Introduction
This section will get you started using J2ME. We'll begin by defining J2ME, then we'll discuss its general architecture and learn about the devices J2ME targets. As part of the architecture discussion, we will provide an overview about profiles and configurations. (We'll address the details of both profiles and configurations in later sections.) We also will cover briefly some considerations for packaging and deploying J2ME applications.

What is J2ME?
Sun Microsystems defines J2ME as "a highly optimized Java run-time environment targeting a wide range of consumer products, including pagers, cellular phones, screen-phones, digital set-top boxes and car navigation systems."...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • Steps Essay
  • steps Essay
  • C# Step by Step Codes Essay
  • Step by Step to Independent Essay
  • Step by Wicked Step Essay
  • Literature Step by Step Wicked Essay
  • Step Essay

Become a StudyMode Member

Sign Up - It's Free