0% found this document useful (0 votes)
92 views18 pages

Java Platform Micro Edition Software Development Kit 3

The document provides information about Java Platform Micro Edition Software Development Kit 3.0 for Windows. It discusses the Connected Limited Device Configuration (CLDC) and Mobile Information Device Profile (MIDP), which define the APIs and virtual machine for developing Java applications on resource-constrained mobile devices. The document also provides details about installing the SDK, including system requirements and step-by-step instructions. Finally, it presents a simple "Hello World" example of a first MIDlet program written using the SDK.

Uploaded by

rawani_rizwan
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
Download as pptx, pdf, or txt
0% found this document useful (0 votes)
92 views18 pages

Java Platform Micro Edition Software Development Kit 3

The document provides information about Java Platform Micro Edition Software Development Kit 3.0 for Windows. It discusses the Connected Limited Device Configuration (CLDC) and Mobile Information Device Profile (MIDP), which define the APIs and virtual machine for developing Java applications on resource-constrained mobile devices. The document also provides details about installing the SDK, including system requirements and step-by-step instructions. Finally, it presents a simple "Hello World" example of a first MIDlet program written using the SDK.

Uploaded by

rawani_rizwan
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1/ 18

Java Platform Micro Edition Software

Development Kit 3.0 for Windows

1
What is CLDC & MIDP?

2
CLDC
The Connected Limited Device Configuration (CLDC) defines the base
set of application programming interfaces and a virtual machine for
resource-constrained devices like mobile phones, pagers, and
mainstream personal digital assistants. When coupled with a profile
such as the Mobile Information Device Profile (MIDP), it provides a
solid Java platform for developing applications to run on devices
with limited memory, processing power, and graphical capabilities.

3
CLDC objectives
The goal of the CLDC specification is to standardize a highly
portable, minimum-footprint Java application development
platform for resource-constrained, network-connected devices. It is
developed through the Java Community Process (JCP), which
comprises more than 500 members, including mobile operators and
service providers, wireless handset manufacturers, and vendors of
mobile software. CLDC has been designed with the following goals
in view:

• Facilitate application portability by abstracting native system


operations into standardized APIs
• Extend device functionality by allowing dynamic downloading of
applications into the device
4
TARGET DEVICE
CLDC is designed to bring the many advantages of the Java platform to
network-connected devices that have limited processing power, memory,
and graphical capability, such as cellular phones, pagers, low-end personal
organizers, and machine-to-machine equipment. In addition, CLDC can
also be deployed in home appliances, TV set-top boxes, and point-of-sale
terminals. Target devices typically have the following capabilities:
• A 16-bit or 32-bit processor with a clock speed of 16MHz or higher
• At least 160 KB of non-volatile memory allocated for the CLDC libraries
and virtual machine
• At least 192 KB of total memory available for the Java platform
• Low power consumption, often operating on battery power
• Connectivity to some kind of network, often with a wireless, intermittent
connection and limited bandwidth

5
MIDP
The Mobile Information Device Profile (MIDP) is a key element of
the Java 2 Platform, Mobile Edition (J2ME). When combined with
the Connected Limited Device Configuration (CLDC), MIDP provides
a standard Java runtime environment for today's most popular
mobile information devices, such as cell phones and mainstream
personal digital assistants (PDAs). The MIDP specification was
defined through the Java Community Process (JCP) by an expert
group of more than 50 companies, including leading device
manufacturers, wireless carriers, and vendors of mobile software. It
defines a platform for dynamically and securely deploying
optimized, graphical, networked applications.
 

6
CLDC and MIDP provide the core application functionality required by
mobile applications, in the form of a standardized Java runtime
environment and a rich set of Java APIs. Developers using MIDP can write
applications once, then deploy them quickly to a wide variety of mobile
information devices. MIDP has been widely adopted as the platform of
choice for mobile applications. It is deployed globally on millions of
phones and PDAs, and is supported by leading integrated development
environments (IDEs). Companies around the world have already taken
advantage of MIDP to write a broad range of consumer and enterprise
mobile applications.
 
BENEFITS
• Rich User Interface Capabilities
• Extensive Connectivity
• Multimedia and Game Functionality
• Over-the-Air-Provisioning
• End-to-End Security:
7
INSTALLATION

8
System requirement
Minimum Hardware
• 300-350 MB hard disk space
• 1 GB system RAM
• 1 GHz Pentium CPU

Required Software
• Microsoft Windows XP or Vista 32-bit with recent service packs
• Java SE Development Kit - JDK 1.6 or higher
• Apple QuickTime player (required to play AMR media on Windows)

9
How to Install
• Verify that your system meets the preceding minimum hardware
and software requirements.
• Download Java ME Platform SDK 3.0.
• Double-click the executable file to start the installation, and follow
the prompts.
• As the installation concludes, the Device Manager appears in the
Windows system tray.

10
11
First MIDlet program

12
Click on file -> New Project(ctrl+alt+N)

13
Select Project Name & Location

14
Select Device & Device Configuration

15
HelloMIDlet.java
package hello;

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

public class HelloMIDlet extends MIDlet implements CommandListener {

private Command exitCommand; // The exit command


private Display display; // The display for this MIDlet

public HelloMIDlet() {
display = Display.getDisplay(this);
exitCommand = new Command("Exit", Command.EXIT, 0);
}

public void startApp() {


TextBox t = new TextBox("Hello", "Hello, World!", 256, 0);

t.addCommand(exitCommand);
t.setCommandListener(this);

display.setCurrent(t);
}


16
public void pauseApp() {
}

public void destroyApp(boolean unconditional) {


}

public void commandAction(Command c, Displayable s) {


if (c == exitCommand) {
destroyApp(false);
notifyDestroyed();
}
}

Click on play button & program will run on emulator

17
OUTPUT:

18

You might also like