The moose likes Java Micro Edition and the fly likes simple question,what is the difference between MIDP and CLDC? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply Bookmark "simple question,what is the difference between MIDP and CLDC?" Watch "simple question,what is the difference between MIDP and CLDC?" New topic
Author

simple question,what is the difference between MIDP and CLDC?

Daniel Washington
Ranch Hand

Joined: Oct 26, 2002
Posts: 53
I am reading the j2me book written by sam.
in my mind,i thought:
CLDC is for specfic device,has some fundanmental API library,such as:java.lang;java.util;
MIDP is profile for some cldc,seems like some addtional api library besides the CLDC,such as javax.microediton.lcdui;javax.microedition.rms;

in one word both cldc and midp are define API,is just the API content is different,am i right???

thx for anyone can solve my confuse!


IBM 141<br />IBM 285,286<br />IBM 700
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
Yeap, MIDP and CLDC is almost always used together to define a complete system. In addition to APIs, I think CLDC also defines the virtual machine.


Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
I'm pretty new to J2ME, so take my comments worth a grain of salt. From my point of view as a developer, the main difference between MIDP and CLDC is that MIDP adds to the API available. As far as I know, MIDP contains all the classes defined by CLDC and adds some more specific ones, especially the user interface classes.

HTH

Layne


Java API Documentation
The Java Tutorial
Tha�s Manfrim Firmino
Ranch Hand

Joined: Apr 12, 2004
Posts: 48
We�ll, I found on Sun site, the following:

"J2ME has two main branches. The first is based on the Connected, Limited Device Configuration (CLDC). This configuration is for small wireless devices with intermittent network connections, like pagers, mobile phones, and Personal Digital Assistants (PDAs). The Mobile Information Device Profile (MIDP), which is based on CLDC, was the first finished profile and thus the first finished J2ME application environment.
The other major branch of the J2ME tree is based on the Connected Device Configuration (CDC). This configuration is for larger devices ..."

Tha�s Mayumi.


Tha�s M. K. M. Firmino
Sebastian Green
Ranch Hand

Joined: Jan 30, 2004
Posts: 136
Simplified you can say that CLDC is supporting java on pagers, mobile phones, PDAs. Mostly devices that runs on battries and has no constant powersuply.

MIDP is more specified for phones, so you could say its "sub libary" for supporting java on phones. Which are an sub catogory to small wireless devices.

Hope that will give you a hint!


/ Sebastian<br />No blog, No homepage, No life?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16622

Actually CLDC really just defines a configuration. It defines the basic API clases that map to a subset of the J2SE.

MIDP is an implementation API, meaning it is built upon the specification of CLDC and does include more specific APIs to go along with the CLDC defined APIs.

You cannot however, just download a CLDC and start developing, because it is the framework or base of everything.

Does that make sense.

Meaning there is an midpapi.zip (why isn't his a .jar?) but you will not find a cldcapi.zip.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16622

Let me rephrase my answer.

Actually if you only download the KVM, then you will only get the classes that are defined in the CLDC. So in essence there is a way to get the CLDC classes only. You are just limited with the subset of J2SE.

Mark
 
 
subject: simple question,what is the difference between MIDP and CLDC?
 
Threads others viewed
please help me !!! v important
CLDC and MIDP?
Please help
Read all specs?
!! Overwhelmed by Java jargon!!!!
developer file tools