Your browser is not supported. Please update it.

4 March 2004

Open source pressure obscures the real issues for mobile Java

Java appears to have achieved a dominance among high end cellphone software platforms that will be hard to break, placing it in pole position to challenge Microsoft at last as the smartphone starts to usurp the role of the PC. However, it is important to remember that, so far, Java has achieved no more than a valuable headstart on its rivals ‘ it runs on about 120m phones, but this is out of a total population almost five times that. It has almost certainly done enough to stay permanently ahead of its smaller rivals, notably Qualcomm Brew, but it cannot feel complacent about Microsoft .Net Compact Framework, which will be improved significantly this year. There are three main factors that could drag Java down in the mobile world ‘ a failure to settle the open source issue once and for all; the fragmentation of the standard; and over complexity for developers and handset makers.

Sun has been coming under increasing pressure from other vendors to open source Java ‘ but would this move actually benefit the technology in its mobile form (J2ME) or even be welcomed by developers? The company is in talks with IBM, whose vice president of emerging technologies, Rod Smith, recently sent an open letter challenging Sun to create an independent group to develop an open source implementation of all Java variants.

It is widely expected that Sun ‘ which needs friends in the industry right now ‘ will come to some form of compromise, which will also involve IBM giving its own implementation of Java to the open source community. ‘IBM is ready to provide technical resources and code for the open source Java implementation while Sun provides the open source community with Sun materials, including Java specifications, tests and code. We are firmly convinced the open source community would rally around this effort and make substantial contributions as well,’ said Smith’s letter, which itself followed a similar letter from Eric Raymond, head of the Open Source Initiative (though it is worth noting that this missive has been roundly criticized in many quarters of the Java world itself for following a political rather than a technological agenda).

There are good reasons for Sun to make such a deal. Open sourcing would undoubtedly improve its negative image among developers for imposing tough and one-sided licensing practises, and score a significant publicity coup against the king of unpopular licensing, Microsoft. Since Sun has largely failed to turn its greatest asset into hard cash, open sourcing could scarcely weaken its commercialization of the technology. And such a move should encourage innovation and more rapid roll-out of advances.

But this is a complex issue and one that is too easily clouded by the self-interest of the large vendors involved. IBM and others resent that they have contributed to Java technology over the years without reward; Sun claims Java is the company’s software franchise, and you don’t give away the franchise. After all, Java lies in a long Sun tradition of creating superior technology and then seeking to license it into being a de facto standard.

And open source is not a cure-all ‘ especially not in a mobile world used to dealing with the tightly closed environments of the operators. The success of an open Java would depend on the structure and discipline of the governing body and on ensuring that the software did not become even more susceptible than it already is to inconsistencies and fragmentation. In the smartphone market, this latter would sound a death knell. The operators have little interest in software technologies, provided developers can provide them with applications that fulfil three key criteria ‘ swift time to market, simple portability over the whole portfolio of phones, efficiency of download. None of these are possible with a fragmented platform.

The current half-hearted openness satisfies nobody. Many companies take part in the Java Community Process that governs development of Java, submitting proposals and code to improve the platform, but smaller developers feel excluded from this process and the final decisions still rest with Sun.

Sun has made some hesitant moves towards openness, notably in 2001 when it set up Project JXTA, a set of Java-based, open source peer-to-peer protocols that allow cellphones, PDAs and other connected devices to communicate. But although there are 16,000 developers in the JXTA community, it remains just a subset of Java and similar moves have not been made in other areas of the platform. There are independent open source initiatives working in Java, such as Apache’s Jakarta Project, which maintains open source, Java-based solutions such as the web applications framework Struts; and the JBoss Java application server. In 2002, open source bodies such as Apache Foundation were permitted to implement a JSR without being constrained by the reference implementation and, for the first time, to submit APIs to the JCP for possible inclusion in future releases. But amendments that go through the JCP, called JSRs, do not have to have an open source implementation ‘ often because they incorporate their sponsors’ patents.

But moves towards greater openness have been hesitant at best and control rests firmly with Sun, which hovers in a halfway house between being just the sponsor of the technology and being a competitor with other makers of real Java-based products . However, it is a myth that all developers and software houses favor open source J2ME. In the fast moving mobile world, the main fear is of anything that slows down or confuses Java and so makes it less appealing to the operators. A quick look at the Java games development community site, javagaming.org, shows that most phone-based games creators would prefer Java to remain closed, feeling that Sun’s control results in a higher quality, more consistent platform (although the site is hosted by Sun, it does not moderate this forum).

Some representative comments include: ‘If this happened I’d probably never use Java for any more commercial projects. I have been a professional C programmer, and if I’m to go back towards that hell (the chaos of an uncontrolled mainstream language) then there are better languages to use. C++ as a value proposition gains a great deal (comparatively) if Java becomes yet another open source limp biscuit without standards and without control.’

Developers are well aware of the political agendas behind the various exchanges of letters and that, in the end, control is the real issue at stake for the suppliers, not some dream of open sourcing. Sun has control, IBM and Nokia would like it. Sun has not always exercised its control well ‘ a particularly sore spot is its early half-heartedness in promoting Java, something that has been done more aggressively by IBM. But any form of control is better than open source, argue the critics of the IBM stance, because it is more effective in fending off Microsoft. Another comment: ‘Only through the present arrangement has Sun managed to force Microsoft to cease ’embrace and extend…and kill’ (how many other languages, systems, and platforms can claim to have achieved that?)’.

Even Linus Torvalds, the father of the most famous open source platform, Linux, is not passionate about opening up Java. ‘I don’t complain about other people’s licenses,’ he said. ‘If Sun doesn’t want to open source it, that’s their decision, I’m not going to butt in.”

If the real issue for the vendors is control, the real issue for developers is uniformity, without which they will struggle to achieve mass market in the mobile world. The JCP has not been wholly effective at creating a single platform, though it has certain strengths ‘ for instance, it uses a process called Technology Compatibility Kit testing to ensure consistency, which supporters claim is more reliable than what Apache calls the ‘Darwinist’ approach of open source to uniformity, which treats non-conformance as a bug to be fixed.

For reasons like these, it may be more productive to improve the mechanisms of the JCP in the mobile world ‘ for instance, by making it easier for smaller developers to submit improvements – than to go for complete openness.

Uniformity has been problem enough in the semi-closed world. Sun admits that there have been problems in writing a single Java program that will run on any supporting handset, though it has made several moves recently to improve the situation. The latest version of J2ME’s Mobile Information Device Platform (MIDP 2), is more all-encompassing than its predecessor, leaving less leeway for the proprietary extensions that have plagued mobile Java. MIDP 2 should be standard in new handsets from midyear.

However, far from embracing greater openness, most steps to solidify J2ME and fulfil the promise of ‘write once run anywhere’ are heavily influenced by the handset makers, hardly poster children for open source.

For instance, last month, Sun joined with the major handset makers to launch the ‘Java Verified’ program, which is designed to enable Java mobile apps to run on phones from multiple vendors with only one certification required. Sun will manage and operate the scheme, which aims to maximize available software and allow developers and content providers to get their products to market more quickly (see Wireless Watch issue 50).

Also, Java Technology for the Wireless Industry (JTWI), a group within the JCP that seeks to plan future directions for mobile Java and address the problem of fragmentation, is dominated by Sun and the phonemakers, particularly Nokia, for whom Java is a critical weapon in its challenge to Microsoft in the enterprise. The JTWI aims to lay out an overall architecture for J2ME in mobile phones, which is still incompletely standardized, identifying configurations, profiles and APIs, such as MIDP 2.0, that are essential for JTWI compliance. This will be the basis of the ‘Java Verified’ certification.

Such steps are vital to reduce fragmentation of mobile phone platforms, and also to increase the level of base functionality, so reducing the need for extensions and the danger of incompatible solutions. Device specific API extensions have proliferated on mobile phones because the MIDP profile is targeted at all mobile devices and so omits many phone-specific requirements, such as address books and particular user interface behaviour. But the danger of the JTWI approach is that Sun is trying to create too generic a platform for mobile phones ranging from games-optimized devices to business-focused PDA hybrids.

As well as reducing fragmentation, the other factor that will increase the appeal of Java to carrier-focused developers will be the ability to create applications and get them to market more simply and quickly. Compared to .Net CF and Visual Studio, which are simple and highly integrated with the base architectures, J2ME is a very complex environment and there is heavy pressure from carriers and developers to simplify the process.

One area of improvement has been tighter integration of Java with cellphone architectures. For instance, Texas Instruments recently licensed Sun’s J2ME virtual machine, CLDC HotSpot Implementation, to integrate into its wireless processors and the two companies will work together to optimize MIDP 2 on the TI OMAP cellphone platform. Third party JVMs ‘ particularly the leader among them, Esmertec JBed, which claims to be the slimmest available ‘ are also important in this respect.

The second area is Sun’s Java Mobility Advantage Program, an end-to-end program launched last autumn to help operators and handset manufacturers speed up time to market for mobile Java applications, supporting development, testing and deployment and enabling the solutions to be marketed via Sun’s java.com portal into the bargain. Behind the scheme are test suites and Sun’s Content Delivery Server, which enables operators to manage, deliver and bill for mobile Java content.

The latter, acquired with Pixo last June, was Sun’s most important move to date to bring Java in line with Qualcomm Brew as an operator provisioning platform ‘ a vital front door into the carriers’ strategies. Brew is not a challenger to Java, partly because it is confined to the CDMA world ‘ indeed, last year, it was modified to support Java content ‘ but it offers significant advantages over J2ME as a carrier platform, with which Sun has been battling to catch up.

Brew may live on only 16m handsets, compared to Java’s 120m, but despite persistent predictions of its death, its owner Qualcomm sees it as a Trojan horse to expand into Europe, W-CDMA and enterprise markets and is not giving up on it. Critically, it kept it alive last year by allowing Java applications to run on its platform and supporting the IBM mobile Java Virtual Machine, on its CDMA chips. Although C++ is the native language for Brew, Qualcomm has made some strides in convincing the Java development community to consider its platform.

And Brew does have several advantages over Java. Qualcomm has moved far more rapidly to develop functionality such as application provisioning which makes the operator’s life easier. Its long experience of working with carriers in its CDMA business make it far more attuned to the real requirements of this group of companies than Sun. And it is quicker to introduce new functions to its development environment, notably location based services and push to talk. In fact, it is one of the best examples of how Sun has failed, so far, to turn its Java asset to commercial advantage, by falling down on product roll-out and marketing and letting third parties take the initiative.

Brew provides ready-to-use integrated provisioning, billing and application aggregation ‘ just one step away from an outsourced service – making the rapid roll-out of content services far simpler for the carrier. The operator can create its own service on top of this platform and choose from the apps that Qualcomm has aggregated, enabling it to launch services in a matter of weeks. By contrast, Sun’s approach with J2ME is to provide developer tools but it does not ‘ surprisingly ‘ offer a readymade platform, though it is moving that way with Content Delivery Server.

Sun’s critical goal this year is to drive uptake of Java and it needs to take a long, hard look at whether this will be better achieved with open source or tighter control. Certainly, the current compromise situation is the least likely to succeed in keeping .Net CF at bay in the mobile arena.

Sun holds the trump card of course. Whether or not it chooses to go the open source route, Java supporters such as Nokia and IBM cannot turn their back on J2ME now. It has sufficient market weight already to be the best hope of creating an alternative, smartphone-based client platform to the Windows PC ‘ increasingly, more important than the operating system itself. Symbian OS and mobile Linux are both heavily reliant on Java, which has the chance to be the real standard in the smartphone market, ahead of any one OS. ‘It’s so ‘last millennium’ to write to the operating system.You must write to the Java web services layer,’ said Sun chief Scott McNealy recently. (The SavaJe smartphone operating system, heavily backed by some large operators, goes a step further by providing a totally native Java platform, requiring no other kernel or OS. It is as far as could be from open source, with development and customization features geared entirely to the operators’ needs.)

So Sun has two concerns that are greater than retaining the support of IBM and the others. One is how, at last, to make some real money out of Java. It is taking some steps in the right directions as far as operators are concerned, with the Content Delivery Server, but is still failing to reap real returns in terms of enterprise mobile markets. The other is how to keep the developers happy and attract a significant base of high end Java programmers to the mobile platform, in order to compete with the greatest advantage of the .Net camp, the vast base of Visual Basic programmers. It is by no means clear that either of these two ambitions will be best served by giving into the pressure to open source Java.