aspose file tools*
The moose likes Java Micro Edition and the fly likes Configurations and Profiles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Configurations and Profiles" Watch "Configurations and Profiles" New topic
Author

Configurations and Profiles

Mahesh Sivaraman
Greenhorn

Joined: Jun 19, 2002
Posts: 19
Hi all,
I am new to J2ME programming. I've read some tutorials and docs regarding J2ME. The programming part is OK. But what i am confused in is the configurations and profiles. What exactly those things stand for. Can any one pls explain to me them in detail ? i tried something with the POSE. I installed MIDP_g.prc which comes with J2ME Wireless toolkit. What is that prc file ? Is it the configuration or profile ? Or togother..Pls explain..
Regards
Mahesh
a sanjuan
Ranch Hand

Joined: Jun 12, 2002
Posts: 164
Hi:
see:
http://www.blueboard.com/j2me/intro.htm
at the bottom is a diagram showing the various configurations and profiles.
the prc file is an executable file for Palm OS. the emulator you are running is using the MIDP profile (Mobile Information Device Profile), which is meant for devices with limited resources (e.g. handheld cellphones). The MIDP is part of the CLDC (Connected Limited Device Configuration).
Mahesh Sivaraman
Greenhorn

Joined: Jun 19, 2002
Posts: 19
Hi sanjuan ,
Thanx a lot..I think i got some idea. I'll tell u what i understood.. Pls rectify if i go wrong..
Configurations are like specifications which define the minimum set of APIs which needed to run an application in a range of devices. Profiles are implementations of Configuration for a particular device. Say MIDP4Palm. Am i rite ?
When we install MIDP_g.prc in the POSE, it installs the MIDP Profile(implementation of the CLDC profile) for Palm OS togother with the JVM needed to execute the J2ME application in that Device.
What do u think? Did i get a clear picture ?
Regards
Mahesh
a sanjuan
Ranch Hand

Joined: Jun 12, 2002
Posts: 164
sorta...here's another way I think of it that might be clearer:
configurations are targeted towards a horizontal group of devices, meaning devices that have similar memory constraints, similar user interface requirements, similar network capabilities, etc. it's the minimum platform (VM, core java classes) that will support a relatively broad range of similar devices (e.g. low and medium end PDAs and cellphones could be placed in the same configuration because they may have similar requirements and needs as noted above)
profiles lie above a configuration and will not work without the underlying configuration. profiles target devices in a specific vertical market (e.g. MIDP profile, which is part of the CLDC configuration targets low end cellphones. There is a PDA profile in the works which will also be in the CLDC). profiles contain the java classes that focus on specific implementations such as user interface components and record managment (ie. where and how to store persistent data).
the current runtime for the Palm you mentioned uses the MIDP profile (which sits on top of the CLDC configuration running the KVM)...i'm hoping the PDA profile comes out soon because i know of some palm users who were not that impressed with it.
Mahesh Sivaraman
Greenhorn

Joined: Jun 19, 2002
Posts: 19
Hi sanjuan,
Thanx a lot . Now i got a good picture abt the profiles and configurations..
Regards
Mahesh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configurations and Profiles