Comparing J2ME and .Net Compact Framework is more complex than any simple features-to-features comparison can encompass. For one thing, the analysis must include nontechnology dimensions such as viability, market acceptance, development and testing tools, reach (J2ME today reaches down to far smaller devices than does Windows CE, and today, at least, .Net CF has not been ported beyond CE), and standardization and coherence of the platform. The future direction of each platform also needs to be taken into account, given the early stage not only of the two platforms but also of many of the markets in question. J2ME's Mobile Information Device Profile (MIDP) variant is in production, and the other two leading platforms, PDA Profile and Personal Profile, are in the final stages of standardization. Meanwhile, .Net CF is in the final stages of its beta tests. And, of course, these are only the "1.0" versions of each: Both have significant development as yet unrealized.
For some specialized needs involving tight platform integration with a specific implementation of Windows CE, you may need to drop down to native APIs, but the greatest level of configuration complexity is one operating system and one framework. The picture on J2ME is considerably more complex. J2ME is not a platform in its own right, but rather a process within which a set of platforms (profiles) complemented by an array of optional extensions (packages and other Java Specification Requests, or JSRs) can be defined. Some of the profiles support access to native APIs through Java Native Interface, others, such as MIDP, do not; and some implementations extend MIDP to allow native access (at the cost of portability). Pragmatically, a J2ME-based solution to a particular business need will typically comprise a choice of a profile combined with a number of optional packages from within J2ME for specific needs such as Bluetooth or telephony, as well as perhaps technologies that lie outside the scope of J2ME.
Consequently, a comparison between the two based on specific individual products (such as a MIDP implementation on a particular handset) understates the possibilities of J2ME-based solutions, while a comparison based on the entire scope of J2ME (i.e., all of the profiles and other JSRs) overstates the reality of any given specific implementation, yet you need to take both into account.
In practice, a mobile strategy is going to involve implementing different applications on different devices for different business needs, roles, and users, potentially ranging from the smallest phones to notebooks and tablets, and possibly embedded devices. Thus, when choosing a mobile platform, you must make both a strategic decision and a set of tactical decisions. The strategic decision must encompass the range of mobile business requirements that you anticipate addressing over time. At the same time, each specific requirement corresponds to a tactical decision of which set of technologies is required and a choice of particular implementation of those technologies. Comparing .Net CF to only the capabilities of a given profile will understate the total strategic coverage of J2ME compared with .Net CF; considering the complete J2ME specification will overstate the tactical possibilities available in any specific implementation.
For example, consider an application that requires XML-based integration between device and server, a capability that's readily addressed within .Net CF and the supporting Visual Studio tools and has been demonstrated in some applications built on the beta release. A naive comparison to J2ME would indicate that MIDP (or indeed any of the other J2ME profiles) does not include XML support, and even support through an optional, add-on JSR is some way off. In practice, a number of pragmatic solutions have already been implemented and deployed in MIDP applications using commercial products, open-source technologies such as EnhydraME, or home-brewed XML parsers written within MIDP. There are, obviously, disadvantages of relative complexity in the J2ME solution, but those must be balanced against the choice of technologies and the flexibility to include or exclude technologies as required.
When choosing a mobile platform, first and most importantly compare platforms to platforms. Think about the spectrum of requirements you need to address and consider whether specific solutions can be drawn from within each platform or readily extended upon each platform to cover that range. Second, compare products to products. For each specific requirement, you'll need to select a particular implementation of a particular subset of technologies from a particular vendor, and this is especially important when considering J2ME, given the variety of specific implementations. Above all, avoid the trap of comparing products to specifications.
Carl Zetie is VP of research at Giga Information Group.
To discuss this column with other readers, please visit the Talk Shop.
Stay connected and informed by visiting the CA Solutions Center Community!

Become a member today for instant access to free InformationWeek research, expert advice, peer perspectives, and more on the following topics:
- Application Performance Management (APM)
- Security Management
- Mainframe 2.0
- IT Automation
- Service Assurance
Also, visit our Government and Financial Services groups to see how these technologies apply specifically to those industries.
NOTE: Offer valid for U.S., U.S. possessions, & Canada only.