• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
author
Posts: 1436
6
Python TypeScript Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
That new kid is a freak. Show him this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic