Your SlideShare is downloading. ×
J2me
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

J2me

176
views

Published on

J2ME:-Java 2 Micro Edition

J2ME:-Java 2 Micro Edition

Published in: Education, Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
176
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. An Over view ofJ2MEBy Geetu Khanna
  • 2. Using J2ME withWirelessDevices
  • 3. What is J2ME?Java2 Micro Edition Java Platform, Micro Edition, or J2ME, is a Java platform designed for embedded systems (mobile devices are one kind of such systems). Devices such as:  Mobile Phones  Pagers  PDA’s  Car Navigation Systems  Internet Appliances  Set-Top Boxes
  • 4. The J2ME Universe PDAP Personal Profile MIDP Personal Mobile Information Personal Basis Profile Digitial Assistant Device Profile Profile Foundation Profile CLDC CDC Connected, Limited Device Configuration Connected Device Configuration J2ME Java 2, Micro Edition
  • 5. J2ME Profiles The Connected Limited Device Configuration (CLDC) Contains a strict subset of the Java-class libraries, and is the minimum amount needed for a Java virtual machine to operate. CLDC is basically used for classifying innumerable devices into a fixed configuration.  Mobile Information Device Profile (MIDP) - Designed for mobile phones  Information Module Profile (IMP) - is a profile for embedded, "headless" devices such as vending machines, industrial embedded applications, security systems, and similar devices with either simple or no display and with some limited network connectivity.
  • 6. J2ME Profiles Connected Device Configuration (CDC) The Connected Device Configuration is a subset of Java SE, containing almost all the libraries that are not GUI related. It is richer than CLDC.  Foundation Profile - This profile is intended to be used by devices requiring a complete implementation of the Java virtual machine up to and including the entire Java Platform, Standard Edition API.  Personal Basis Profile - The Personal Basis Profile extends the Foundation Profile to include lightweight GUI support in the form of an AWT subset.
  • 7. MIDPMobile InformationDeviceProfile Java ME devices implement a profile. The most common of these are the Mobile Information Device Profile aimed at mobile devices, such as cell phones, and the Personal Profile aimed at consumer products and embedded devices like set-top boxes and PDAs.
  • 8. MIDP vs J2SE No Native Methods Threading, but no use of interrupt() No file-based I/O Many classes with fewer methods Collections (Vector, Hashtable & Stack)
  • 9. MIDP API(familiar packages)  java.io  java.lang  java.lang.ref  java.util
  • 10. MIDP API(no so familiarpackages)  javax.microedition.io  javax.microedition.lcdui  javax.microedition.lcdui.game  javax.microedition.media  javax.microedition.media.control  javax.microedition.midlet  javax.microedition.pki  javax.microedition.rms
  • 11. What makes up a MIDPApplicationMIDP Applications are composed of twoprinciple partsJAR File – Contains all of the classes andresources used by the applicationJAD File – Application descriptor,describes how to run the MIDP application
  • 12. JAD Files  Very simple NON-XML config file  Application Name  MIDI version  Copyright and version information  Location of the JAR file
  • 13. Example JAD FileMIDlet-1: Jargoneer, Jargoneer.png, JargoneerMIDlet-Jar-Size: 2369MIDlet-Jar-URL:http://www.jeffheaton.com/Jargoneer.jarMIDlet-Name: JargoneerMIDlet-Vendor: UnknownMIDlet-Version: 1.0MicroEdition-Configuration: CLDC-1.0MicroEdition-Profile: MIDP-1.0
  • 14. Getting StartedWhat do I need? J2SE (http://sun.java.com) Sun’s J2ME Wireless Toolkit (http://java.sun.com/products/j2mewtoolkit/) Internet Connection Publicly accessible website or public static IP address
  • 15. References Sun Microsystems J2ME http://java.sun.com/j2me/ Deploy your J2ME Application http://www.devx.com/Java/Article/10688/0/pag e/2
  • 16. Thank You !!!