Feeds

Coming soon: Open source JavaFX for iOS, Android

Will enable cross-platform Java-based UIs – but why?

The Power of One Brief: Top reasons to choose HP BladeSystem

Java and JavaFX on iOS? Maybe not

First, using JavaFX isn't the most practical way to build an iOS app. Because iOS doesn't ship with a Java Virtual Machine (JVM) and JavaFX is implemented in pure Java, using the technology means iOS developers must embed both the JavaFX libraries and a lightweight JVM into their apps. That could potentially result in multiple, redundant copies of the JVM running on the same device.

Not to mention that outside of Oracle, no one has seen this particular JVM yet. Bair says his team's JavaFX ports for mobile platforms "are based on an as-yet unreleased version of JavaSE Embedded for iOS/Android," so we can't be sure what its capabilities are.

Second, Apple still places restrictions on the types of software that can be sold through the iOS App Store. Most notably, virtual machines that do Just in Time (JIT) compilation are forbidden, which could limit the real-world performance of Java, and by extension JavaFX.

Third, the licensing issues around OpenJFX and the App Store aren't clear. The open source versions of JavaFX and the JDK are licensed under the GPLv2 with the Classpath Exception. Cupertino has booted GPL-licensed software from the App Store in the past because the license conflicts with Apple's own terms of service.

Bair says "his understanding" is that the Classpath Exception means you should be able to link the JavaFX code libraries into your own apps, release the apps under your own license, and sell them through the app store without violating Apple's terms. But even he isn't 100 per cent sure, and he hastens to add that he's not a lawyer.

But perhaps the most significant reason why JavaFX is unlikely to take off among iOS developers is that there simply isn't any compelling reason to use it. Apple provides a native UI toolkit for iOS, and developers who prefer a cross-platform technology already have a perfectly workable solution in HTML5.

According to recent research by Gartner, by 2016 more than 50 per cent of all mobile apps will be so-called hybrid apps, built using a combination of native application logic and a UI layer based on HTML. Given that HTML rendering is supported by every modern smartphone platform, there's little incentive to bolt on something extra, such as JavaFX.

Still, niche UI tools and frameworks have enjoyed some success among games developers, and Oracle may be hoping to tap into that market with JavaFX, rather than selling it to productivity-app developers. If that's the case, however, there's a lot more work to be done before JavaFX is a viable competitor to the likes of Unity or ShiVa3D.

The question is whether Oracle is willing to do that work. The efforts of Bair's team to open source JavaFX are commendable, but until Oracle is willing to commit to a formal release of JavaFX for mobile platforms, developers aren't likely to have much faith in its future, either. ®

Securing Web Applications Made Simple and Scalable

More from The Register

next story
Whoah! How many Google Play apps want to read your texts?
Google's app permissions far too lax – security firm survey
Chrome browser has been DRAINING PC batteries for YEARS
Google is only now fixing ancient, energy-sapping bug
Do YOU work at Microsoft? Um. Are you SURE about that?
Nokia and marketing types first to get the bullet, says report
Microsoft takes on Chromebook with low-cost Windows laptops
Redmond's chief salesman: We're taking 'hard' decisions
EU dons gloves, pokes Google's deals with Android mobe makers
El Reg cops a squint at investigatory letters
Big Blue Apple: IBM to sell iPads, iPhones to enterprises
iOS/2 gear loaded with apps for big biz ... uh oh BlackBerry
OpenWRT gets native IPv6 slurping in major refresh
Also faster init and a new packages system
prev story

Whitepapers

Top three mobile application threats
Prevent sensitive data leakage over insecure channels or stolen mobile devices.
The Essential Guide to IT Transformation
ServiceNow discusses three IT transformations that can help CIO's automate IT services to transform IT and the enterprise.
Mobile application security vulnerability report
The alarming realities regarding the sheer number of applications vulnerable to attack, and the most common and easily addressable vulnerability errors.
How modern custom applications can spur business growth
Learn how to create, deploy and manage custom applications without consuming or expanding the need for scarce, expensive IT resources.
Consolidation: the foundation for IT and business transformation
In this whitepaper learn how effective consolidation of IT and business resources can enable multiple, meaningful business benefits.