Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Daniel Washington
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tha�s Manfrim Firmino
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sebastian Green
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic