Feeds

Java's 'Steve Jobs' moment in 2012?

OpenJDK: Right ideas, wrong timing

Boost IT visibility and business value

Java media star?

The notable exception is JavaFX 2.0. From the dark days of JavaFX 1.0, with its weirdo scripting language and inoperability with Swing, the team appears to have completely turned the project around. JavaFXScript is gone (it survives on life support as a separate, open-source project which I expect will dwindle away). Instead the UI is controlled either by “real” Java code or via the new FXML declarative language. Flex/MXML developers should feel right at home. JavaFX 2.0 also boasts CSS support for skinning and layout of UI controls, which should finally allow web designers to get involved with a Java UI and make it look presentable.

Significantly, Swing components can now be placed inside a JavaFX Scene Graph. I do wonder if this will lead to a new breed of mixed component problems like the “heavyweight vs lightweight” issues that plagued the early days of AWT against Swing; however it demonstrates that the team is sounding all the right notes and finally recognised that there’s a lot of Swing code out there, still live, still being developed. Also, they have now provided a viable migration path for projects which may have thousands of lines of complex, business-specific UI model code that can’t just be chucked away.

Oracle was keen to point out the cross-platform nature of JavaFX, but there was no mention in the main arena of targeting Apple’s iOS or the contentious Android from Google. Multiplatform it may be, but without these key platforms, JavaFX is just not that relevant. Lucky, then, that – almost lost among the 50 or so JavaFX 2.0 sessions during JavaOne – Oracle’s senior director of software development and former Sun JavaFX team member Nandini Ramani demoed an early build of JavaFX running on an iPad 2 and a Galaxy Tab 10.1 running Android 3.1. To conform to Apple’s licensing restrictions, the iOS version links in the Java VM as part of the app, instead of launching the app inside the VM.

Thinking outside the coal bunker

Clearly there are still hurdles to overcome. For example, the demonstration used Java ME instead of “real” Java and relied on unreleased enhancements. However, the implications of this development are so huge that this – not roadmap delays – should really have been the “one last thing” in Reinhold’s keynote. The sooner that Oracle can make this project happen, the quicker it can catch up with the already successful Flex Mobile. The fact uncertainty now surrounds the future of Flex, the timing could be even better for Oracle.

The hush-hush iOS demo came as Oracle preps Project Avatar, an alternative approach to running Java on iOS devices – using HTML5 and Java ME. It shows there is a potentially glorious future in mobile outside what has been achieved in Sun’s coal bunker of the enterprise.

While Java SE churns and gets pushed back, the new initiatives do at least show OpenJDK is reinvigorating the Java space. The project has picked up speed just a little too late for the fifth anniversary of the open-sourcing of Java, but if these promised developments really do come together then that means next year should see a series of “one last things” missing from 2011. ®

Matt Stephens recently launched a travel writing site, founded independent book publisher Fingerpress, and co-authored Design Driven Testing: Test Smarter, Not Harder.

Build a business case: developing custom apps

More from The Register

next story
KDE releases ice-cream coloured Plasma 5 just in time for summer
Melty but refreshing - popular rival to Mint's Cinnamon's still a work in progress
Leaked Windows Phone 8.1 Update specs tease details of Nokia's next mobes
New screen sizes, dual SIMs, voice over LTE, and more
Mozilla keeps its Beard, hopes anti-gay marriage troubles are now over
Plenty on new CEO's todo list – starting with Firefox's slipping grasp
Apple: We'll unleash OS X Yosemite beta on the MASSES on 24 July
Starting today, regular fanbois will be guinea pigs, it tells Reg
Another day, another Firefox: Version 31 is upon us ALREADY
Web devs, Mozilla really wants you to like this one
Secure microkernel that uses maths to be 'bug free' goes open source
Hacker-repelling, drone-protecting code will soon be yours to tweak as you see fit
Cloudy CoreOS Linux distro declares itself production-ready
Lightweight, container-happy Linux gets first Stable release
prev story

Whitepapers

Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
Boost IT visibility and business value
How building a great service catalog relieves pressure points and demonstrates the value of IT service management.
Why and how to choose the right cloud vendor
The benefits of cloud-based storage in your processes. Eliminate onsite, disk-based backup and archiving in favor of cloud-based data protection.
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.
Maximize storage efficiency across the enterprise
The HP StoreOnce backup solution offers highly flexible, centrally managed, and highly efficient data protection for any enterprise.