Welcome!

Cloud Expo Authors: Greg Schulz, Jeremy Geelan, Marilyn Moux, Elizabeth White, Pat Romanski

Related Topics: Java

Java: Article

Desktop Java Slims Down to Enter the AJAX Race

A number of very significant development efforts are underway that bode well for Desktop Java's future

A number of very significant development efforts are underway that bode well for Desktop Java's future.

On the language side is the Java FX script project www.sun.com/software/javafx/index.jsp. Java FX is neat because it provides a high-level scripting interface that runs on top of the Java 2D API. From the users' viewpoint it means they don't have to write Java code and, for better or worse, understand the intricacies of threads, Java 2D or Swing class hierarchies, timing frameworks, and so forth. Instead they just write script that describes the desired GUI at a high level, including animation effects, graphic effects such as gradients or noise, and data binding in the base API. There are some nice tools out there to help teach the language syntax that's available on https://openjfx.dev.java.net/; the goal of the FX team is to provide a syntax and experience that is palatable to graphic designers and folks who are interested in finessing the visual experience of the application. Currently at runtime it operates as a kind of fourth-generation language because an interpreter creates Java code from the FX script and then calls the appropriate Java 2D APIs. The long-term goal of the team though is to compile from FX script straight to byte codes.

On its own Java FX is s a nice addition to the desktop Java stable; however, it still relies on the presence of a JRE that can run the code it generates. To those who see FX as being an entrant into the rich Internet application space, competing with Adobe Flex for example, there remains the difficult problem of how to get the install experience and runtime performance of desktop Java comparable to other rich Internet application architectures. Fortunately this problem is being tackled by another very interesting project, the Java kernel.

The Java kernel initiative recognizes the fact that most Java applications typically use a subset of the JRE, an example being Limewire (a file-sharing client app) that weighs in at about 1/3 of a total JRE size. The kernel will repackage the JRE such that only the portions required to run an app are downloaded as and when they are needed. The base portion that every program needs would be downloaded as a minimum for the JRE to start, and an application can either explicitly specify additional dependencies it needs, or rely on ClassNotFound exception magic to cause missing classes to be downloaded on demand. This is all great news to help slim down and make more efficient a Java program's delivery to a user's desktop. In addition to tackling how Java programs are downloaded, the kernel is also looking at the startup performance of Java programs. While warm start times have decreased significantly over the last few releases, a cold start JRE still requires a delay of many seconds before the application's main(String[]) is called. The Java kernel is attempting to tackle this by effectively turning a cold start experience into a warm one, using techniques such as pre-loading the JRE from disk into memory, as well as having operating system services whose job it is to monitor available memory and JRE activity to get the best performance for the user. In addition to these, the kernel is also providing a new browser plug-in that gives Web start developers more information about what's on the desktop, the available JRE levels and vendors in detail, and generally makes the whole JNLP experience slicker and more robust.

Both the Java kernel and Java FX are great news for Desktop Java. The kernel is good because it's recognizing that Swing has reached a stage of maturity where the problem isn't one of missing features, but how to help developers get their applications onto a user's desktop as quickly and efficiently as possible. FX is great news because it opens up a whole new set of developer to Java; those who are comfortable with scripting languages and want to do advanced animation and graphics effects easily with a few lines of code. The end result of both will be more applications written in Java running on more users' machines, faster and easier for both developer and user.

More Stories By Joe Winchester

Joe Winchester, Editor-in-Chief of Java Developer's Journal, was formerly JDJ's longtime Desktop Technologies Editor and is a software developer working on development tools for IBM in Hursley, UK.

Comments (1) View Comments

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


Most Recent Comments
franzone.com 07/12/07 02:41:37 PM EDT

Trackback Added: http://www.franzone.com/2007/07/12/163/; Java is my language of choice and has been for some years now. My first language was C++, which I still love and use on occasion. Why the switch? Fast development… that’s why. Most of the work I do in Java is back-end server applications an...

Cloud Expo Breaking News
What do the CTOs of the CIA and the U.S. Dept. of Justice and the CIO of the National Reconnaissance Office have in common with the CEOs of Eucalyptus, GoGrid, ActiveState, Appcara, OpSource and Nortonworks, the CTOs of Rackspace, SoftLayer, SOA Software and AppZero, the Founder & General Manager of Dell Boomi, the VP of Big Data & Streams at IBM and the Chief Strategy Officer at Pacific Controls? Answer: all are shortly to present breakout sessions as members of the distinguished Speaker Facul...
As a Platinum Plus Sponsor of Cloud Expo New York, Rackspace Hosting is offering special passes to SYS-CON's 10th International Cloud Expo, which will take place on June 11–14, 2012, at the Javits Center in New York City, New York. Rackspace Hosting is the service leader in cloud computing, and a founder of OpenStack, an open source cloud operating system. The San Antonio-based company provides Fanatical Support® to its customers and partners, across a portfolio of IT services, including Manage...
The move to cloud-based applications has undeniably delivered tremendous benefits. However, the associated distribution creates various challenges from the quality perspective: End-to-end tests need to pass through multiple dependent systems, which are commonly unavailable, evolving, or difficult-to-access for testing. Accessing such systems often involves transaction and bandwidth fees. Teams need to test and tune the system under test against a realistic and broad range of performance and ...
In this CTO Power Panel at the 10th International Cloud Expo, moderated by Cloud Expo Conference Chair Jeremy Geelan, industry-leading CTOs & VPs of Technology will discuss such topics as: Which do you think is the most important cloud computing standard still to tackle? Who should and shouldn’t be using a PaaS product today, and why? Can a public cloud ever be truly secure? How important is open source to cloud computing and Big Data? "Mission-critical apps are now safe in the cloud." Tr...
For many of the same reasons that Software-as-a-Service is catching on with enterprise buyers, delivering web services on top of Infrastructure-as-a-Service architectures is appealing to the SaaS developers. Operational agility, lower CapEx, and a broad array of tools and services are on tap that make both public and private IaaS clouds a great platform to build on. But how do you do this securely, especially in the public cloud where you have no access to the network or hypervisor your servers ...
“Big Data eliminates the data silos that formerly existed, improving the depth and quality of analysis that can take place,” observed Scott Kinka, Chief Technology Officer at Evolve IP, in this exclusive Q&A with Cloud Expo Conference Chair Jeremy Geelan. “Without these barriers, Kinka continued, “we gain access to information that was never before available. We can see where there are underserved markets, opportunities, problems that need to be addressed.” Agree or disagree? – "While the IT sa...
With Cloud Expo 2012 New York (10th Cloud Expo) now just three weeks away, what better time to introduce you in greater detail to the distinguished individuals in our incredible Speaker Faculty for the technical and strategy sessions at the conference...
In this CEO Power Panel at the 10th International Cloud Expo, moderated by Cloud Expo Conference Chair Jeremy Geelan, leading executives in the Cloud Computing and Big Data space will be discussing such topics as: Is it just wishful thinking to depict the Cloud as more than just a technology solution? If not, then what concrete examples best demonstrate cloud computing as an engine of business value? Big Data has existed since the early days of computing; why, then, do you think there is such...
If your organization already uses virtualized infrastructure, you are well on your way to providing IT as a Service. But as businesses demand faster results in today’s competitive market, organizations look to gain more benefits from cloud computing than just virtualized infrastructure. Learn how to extend & ensure your private cloud investment with a private Platform as a Service (PaaS) and provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your deve...
The only place to be June 11-14th is the NY Javits Center at Cloud Expo 2012 East. Join us there as delegates from all over the world come to listen to and engage with speakers and sponsors from the leading Cloud Computing, Big Data and Virtualization companies such as Dell, SHI, Intel, Compuware, Citrix, Rackspace, Terremark, Akamai and more. The event features 100+ Technical Sessions, General Sessions, Industry Discussion Panels, and Keynotes by thought leaders in the Cloud, Big Data and Virtu...