Upload
kamal-patel
View
52
Download
1
Embed Size (px)
Citation preview
GTU PG SCHOOLBISAG,GANDHINAGAR
J2ME PLATFORM
PRESENTED BY:GROUP 3
K A M A L PAT E L ( 1 4 1 0 6 0 7 5 3 0 11 )
K H U S H B U PAT E L ( 1 4 1 0 6 0 7 5 3 0 1 2 )
K O M A L PAT E L ( 1 4 1 0 6 0 7 5 3 0 1 3 )
R I D D H I G H E VA R I YA ( 1 4 1 0 6 0 7 5 3 0 1 5 )
ContentsIntroductionWhy J2ME?J2ME PlatformCPO (configuration, profile and optional packages)ApplicationsPros and consReferences
INTRODUCTION J2ME is a Java platform designed specifically for limited applications running on small devices such as mobile phones, PDAs, and so on. Java ME was designed by Sun Microsystems, acquired by Oracle Corporation in 2010; the platform replaced a similar technology “PersonalJava”.
WHY J2ME??
JAVA-”write once run anywhere” BUT:
•Different devices have different requirements.
•Those device doesn’t have same environment as regular computers.
•One platform cannot address all the market segments(web server, video
games etc).
•Users/developers wants flexibility.
•That’s why sun Microsystem decided to develop a special edition of Java-J2ME(Java 2 Micro Edition).
Cont…• The Java 2 Platform is split into three editions• java 2 standard Edition (J2SE) - Desktop-based applications.• Java2 Enterprise Edition (J2EE)- Server-based applications• Java 2 Micro Edition(J2ME)-For handheld and Embedded devices.
• Each edition provides a complete environment for running Java-based applications including the Java virtual machine (VM) and runtime classes.
• What separates one edition from another, then, is primarily the set of class libraries that each edition defines.
J2ME PLATFORM• At the heart of Java 2 Micro Edition (J2ME) are three core concepts: configurations, profiles, and optional packages.
•You can't write a J2ME application without understanding these concepts, because they determine the features of Java that you can use, which application programming interfaces (APIs) are available, and how your applications are packaged.
Cont…•Optional Package
•Profile• A collection of Java Classes selected from
one or more Java Core, extension or Vertical APIs. Classes are chosen to provide a COMPLETE solution for a specific vertical market.
•Configuration• A subset of java core APIs and Java
Language functionality selected to provide a minimal java platform for a set of vertical markets.
CPO•Configuration• A configuration is a complete Java runtime environment:
• Java virtual machine (VM) to execute Java. • Set of core Java runtime classes .• Interface to the underlying system.
•Profile• Adds classes to a configuration• Fill in missing functionality• Support specific uses of a device
•Optional Packages• Support additional and common Packages• Bluetooth Optional Package
ConfigurationThere are 2 basic configuration•CDC(Connected Device Configuration):• 2 MB or more memory for Java
platform.• 32-bit processor.• High bandwidth network connection.• full-featured Java 2 virtual machine
(CVM).• 17 packages. Use for devices like Palms.
•CLDC(Connected Limited Device Configuration):• 160-512 KB of total memory• 16-bit or 32-bit processor• Low Power Consumption • Limited Bandwidth• KVM without• Floating point types• Object finalization• JNI or reflection• User class loaders
This one we use
MIDP(Mobile Information Device Profile)
The CLDC-Profile used today:• The MIDP defines a platform for dynamically and securely
deploying optimized, graphical, networked applications.• The MIDP specification was defined through the java Community
Process(JCP) by players like:◦ Motorola◦ Nokia◦ Ericsson◦ Research in Motion◦ Symbian
Cont… There are two versions of the MIDP:
◦ MIDP 1.0◦ is the original specification, provides core application functionality
required by mobile applications. including basic user interface and network security .
◦MIDP 2.0◦ is a revised version of the MIDP 1.0. Have new features include an
enhanced user interface. multimedia and game functionality, more extensive connectivity, over-the-air provisioning, and end-to-end security .
MIDlet MIDP does not run in the "regular" Java fashion. using: Main() , System.exit().
Instead, we use MIDIet applications - which are subclasses of: javax.microedition.midlet.MIDIet that is defined by MIDP.
The MIDIet class allows the application management software to:◦ control the MIDIet ◦ be able to retrieve progenies from the application descriptor◦ notify and request state changes
JAR/JAD One or more MIDIets are packaged together into a MIDIet suite, composed of:
◦ JAR (Java archive) file :JAR file contains Java classes for each MIDIet in the suite and Java classes
that are shared between MIDIets. The JAR file also contains resource files used by the MIDlets and a manifest file.
◦ JAD (Java Application Descriptor) file :◦ This file contains a predefined set of attributes that allows the device
application management software to identify, retrieve, and install the MIDlets.
The JAD/JAR files are upload to the machine in order to run the application
ApplicationsOpera Mini (How can we forget)Mobile RSS ReaderWho wants to be a millionaire? 2010 by Glu mobile Dakar 2010 by EA mobile EA sports FIFA 2010 by EA mobileGaana
Pros and cons Pros
◦ Over-the-Air Downloading ◦ Network-aware Applications ◦ Wireless Boom
Cons◦ Standardization ◦ The Physical Restrictions of Mobile
Devices ◦ Fight over Market dominance and
monopoly problems◦ Development problems ◦ Absolute over other new mobile
technologies
References [1] Sun Microsoystems Inc. Java 2 platform, micro edition G2me),
http://java.sun.comlj2me/ ,200S. [2] Jafar Ajdari , Helsinki University of Technology , Java 2 Mobile
Information Device Profile (MIDP) www.tml.tkk.fi/Studies/Tik-111.590/2001s/papers/
[3] Xu JunWu; Liang JunLing ; “Develop Mobile Application with J2ME for 3G networks” 2010 Second International Workshop on Education Technology and Computer Science,Page(s):770-773
ANY QUESTION?