Feeds

Coming soon: Open source JavaFX for iOS, Android

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

Internet Security Threat Report 2014

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. ®

Choosing a cloud hosting partner with confidence

More from The Register

next story
Netscape Navigator - the browser that started it all - turns 20
It was 20 years ago today, Marc Andreeesen taught the band to play
Sway: Microsoft's new Office app doesn't have an Undo function
Content aggregation, meet the workplace ... oh
Sign off my IT project or I’ll PHONE your MUM
Honestly, it’s a piece of piss
Return of the Jedi – Apache reclaims web server crown
.london, .hamburg and .公司 - that's .com in Chinese - storm the web server charts
NetWare sales revive in China thanks to that man Snowden
If it ain't Microsoft, it's in fashion behind the Great Firewall
Chrome 38's new HTML tag support makes fatties FIT and SKINNIER
First browser to protect networks' bandwith using official spec
Admins! Never mind POODLE, there're NEW OpenSSL bugs to splat
Four new patches for open-source crypto libraries
prev story

Whitepapers

Forging a new future with identity relationship management
Learn about ForgeRock's next generation IRM platform and how it is designed to empower CEOS's and enterprises to engage with consumers.
Why cloud backup?
Combining the latest advancements in disk-based backup with secure, integrated, cloud technologies offer organizations fast and assured recovery of their critical enterprise data.
Win a year’s supply of chocolate
There is no techie angle to this competition so we're not going to pretend there is, but everyone loves chocolate so who cares.
High Performance for All
While HPC is not new, it has traditionally been seen as a specialist area – is it now geared up to meet more mainstream requirements?
Intelligent flash storage arrays
Tegile Intelligent Storage Arrays with IntelliFlash helps IT boost storage utilization and effciency while delivering unmatched storage savings and performance.