December 3, 2008 10:26 PM PST

With JavaFX, Sun seeks new coders, new revenue

by Stephen Shankland
  • Font size
  • Print
  • 25 comments

With a back-to-the-future technology called JavaFX to be launched Thursday, Sun Microsystems hopes to attract a new class of developer while building a much-needed new revenue source.

JavaFX 1.0 returns to the sales pitch that Sun used during Java's launch more than 13 years ago: a foundation for software on a wide variety of computing "clients" such as desktop computers or mobile phones. JavaFX builds on current Java technology but adds two major pieces.

Sun CEO Jonathan Schwartz

Sun CEO Jonathan Schwartz

(Credit: Stephen Shankland/CNET Networks)

First is a new software foundation designed to run so-called rich Internet applications--network-enabled programs with lush user interfaces. Second is a new programming language called JavaFX Script that's intended to be easier to use than traditional Java.

But JavaFX faces some steep challenges. Chief among them: while Sun spent much of its energy adapting Java for servers, a host of other software options for building rich Internet applications sprang up. Java paved the way in 1995, but now it's got to take on Adobe Systems' Flash and AIR, Microsoft's newer arrival, Silverlight, and JavaScript and its more sophisticated cousin Ajax.

"This is the essence of the Hail Mary," said Illuminata analyst Jonathan Eunice. "I would like to think there's a role for Java on the client, but it's very late."

But Chief Executive Jonathan Schwartz, despite Sun's dropping revenue, low stock price, and large new layoff, believes that JavaFX will overcome its obstacles.

"Don't confuse relevance for stock price," he said, pointing to Java's widespread adoption among developers and students, and to Sun's expansion into newer open-source areas such as the MySQL database software. "We're more relevant today than any other software developer on the face of the Earth."

And while JavaFX may not be widely discussed today as a rich Internet application foundation, "I promise you that will change in the next 60 to 90 days," Schwartz said.

Java's stronghold
With help from allies such as IBM, Sun built Java into a powerful technology for server software tasks such as running stock-trading applications. And it gained a stronghold on millions of mobile phones.

But it missed out on desktop computers, where it was notoriously slow to load, and lost out chiefly to JavaScript built into the browser and to Adobe's Flash plug-in. On mobile phones, Java has suffered from a sprawling set of optional features that undermine its "write once, run anywhere" promise to developers. Different phones essentially have different varieties of Java.

JavaFX is designed to address both of those issues. First, a more unified "runtime" foundation spans PCs and mobile phones, though the latter version isn't expected until the first half of 2009. And this time, Sun supplies it in an unmodified form so phone manufacturers won't splinter it into incompatible versions.

Sun is promoting JavaFX as a good way to write rich Internet applications.

Sun is promoting JavaFX as a good way to write rich Internet applications. (Click to enlarge.)

(Credit: Sun Microsystems)

"We're making our binaries available" to mobile-phone makers "so we can unify the Java platform implementations," said Schwartz, who expects rapid adoption. "We're starting with a couple billion handsets in the marketplace and swimming downstream."

The business case
Sun also will charge those handset makers a per-unit royalty for JavaFX, and right now, Sun needs all the revenue it can get. Although Java has been good for Sun's brand, it hasn't been a cash cow, but here again, Schwartz has high expectations.

"Java has become the single most profitable software product at Sun, growing more rapidly than any other," he said, pointing to billings (PDF) that Sun charged customers in the company's most recent quarter.

In raw revenue, though, its 18 percent growth to $34 million lagged that of MySQL, for which billings grew 50 percent annually to $37 million. And Sun's hardware revenue still is an order of magnitude larger than its software revenue.

Schwartz also believes that JavaFX has more appeal to content providers because it comes from a neutral technology supplier, not a potential rival.

"The problem with browsers, when viewed as the default mechanism for delivering content for the Web, is that browsers have become hostile territory," Schwartz argued. "Internet Explorer is owned by Microsoft. Firefox is owned by Google, at this point. Chrome is owned by Google. Beyond that, with maybe (the exception) of Safari, which is owned by Apple, there is no safe route to distribute your content into the marketplace."

Perhaps JavaFX's open-source nature reduces the threat that Sun could hold a business partner hostage. But when it comes to safety, there also are risks to betting on new technology.

Distributing JavaFX is another challenge. The auto-update feature in desktop Java will take care of PCs, starting next year--though people will be able to actively download it sooner in coming days--but for mobile phones, Sun relies on handset makers and electronics companies such as TV makers to build it in.

EZ coding
JavaFX is designed to be easier to use too. The JavaFX Script origins lie in a project originally called F3, short for the "form follows function" slogan from the Bauhaus school of architectural thought.

"You can use Java to solve difficult problems," but doing so often requires sophisticated programming, said Eric Klein, Sun's vice president of Java marketing. And regular Java isn't well-adapted to creating basic, media-rich applications that run in browsers. Building a simple media player application in Java takes 100 lines of code, but JavaFX Script can do it in 20 or 30 lines, he said.

"The goal was to make (the) power of Java accessible to an entirely new class of developers," Klein said. "For existing developers, it would accelerate how fast they could get things done."

JavaFX also comes with a slick feature, the ability to move running applications out of the browser and onto the desktop--and back, if desired. Essentially, they can change their nature and abilities according to where they're housed. And the same application also can run on JavaFX Mobile, holding the promise for programmers that they won't have to endlessly rewrite the same applications for different media.

"You can build a media player, run it in a browser, then you can simply drag it out of your browser onto your desktop, and it becomes a desktop application automatically. It's the same code, the same application," said Jeet Kaul, Sun's senior vice president of Java engineering.

Moving to the desktop, the application could take advantage of new screen real estate that affords a better user interface and new permissions for tasks such as writing files to a hard drive, Kaul said.

Again, though, incumbent players have an edge. JavaScript has matured as an interface language, Flash has many loyal developer fans, and Silverlight is powerful, Eunice said.

"I'm invariably skeptical that a language you don't know yet is going to be easier than all the languages you do know," Eunice said. And unlike with earlier chapters of the Java saga, "Sun has to do all this heavy lifting on its own."

Stephen Shankland writes about a wide range of technology and products, but has a particular focus on browsers and digital photography. He joined CNET News in 1998 and since then also has covered Google, Yahoo, servers, supercomputing, Linux and open-source software, and science. E-mail Stephen, or follow him on Twitter at http://www.twitter.com/stshank.
advertisement
 
Lotus knows there's more to work than just email.
Connect with people. Get live feeds. Create widgets. Work securely online or off. Try IBM Lotus Notes.
Recent posts from Business Tech
Application packaging for cloud computing: A proposal
Leaked HP, Gateway 'Core i3' laptops are low-cost
U.S. trade agency eyes Samsung-Sharp spat
Long-awaited Bibble 5 raw photo editor arrives
Reinventing the MacBook Air
Unannounced HP 210 Netbook 'in stock'
Nokia hits Apple with latest patent complaint
Verizon sees rise of 'slate' computers in 2010
Add a Comment (Log in or register) (25 Comments)
  • prev
  • 1
  • next
by magicmaster December 3, 2008 11:28 PM PST
As an average user, I would like to see Java loading faster, not causing my computer to freeze for a while. Basically, it should load so fast that the user barely noticed such things taking place.
Reply to this comment
by Pointedly December 4, 2008 12:46 AM PST
I didn't think too much of Java's latest update. I run Firefox 3.0.4 on a 64-bit Vista Home Premium system. Within an hour of installing the latest update (which included the JavaFX plugin), my computer crashed twice while watching a Hulu movie. I had to uninstall Java, manually remove a plugin dll, clean the registry of a leftover reference to the dll, and defragment my computer's hard drive. On the positive side: The end of the movie was great.
Reply to this comment
by Pointedly December 4, 2008 1:13 AM PST
There is no option to decline installation of JavaFX when installing the new Java update via automatic updating. Since I had no choice but to accept installation of JavaFX, there is no way for me to know if the JavaFX portion of the update caused the multiple crashes to my computer or if it was the non-JavaFX portion of the update that caused to creahes. Since the crashes occurred while viewing a Hulu movie, and since I have viewed Hulu movies in the past without incident, the crashes most likely occurred due to the Java update. Although I did defrag my computer's hard drive before watching the end of the movie, the hard drive had been defragmented previously and within the past week. I did the defragmentation only because I had removed Java. I don't think the crashes occurred due to a fragmentation problem.
Reply to this comment
by Pointedly December 4, 2008 2:16 PM PST
I W A S W R O N G. Sun's update of its Java and JavaFX technology is fine. The problems I had experienced with Hulu crashing, although temporally related to the installation of the Java update, were not caused by the Java update. After I had uninstalled Java and had run defrag, the freezing of Hulu movies continued. T H E J A V A U P D A T E H A D N O B E A R I N G O N T H E P R O B L E M.
by inachu December 4, 2008 3:29 AM PST
As I see it. Java is getting slower and slower and slower and they have now added apon the slowness of running of all things the fanfare Java logo. but ever since they added the loading screen showing off the orange logo everything seem so much slower. Really now! Did they hire people from Redmond to do this?
Reply to this comment
by Renegade Knight December 5, 2008 11:56 AM PST
They are all getting bloated and slow. If Sun could make Java the exception then they would be on to something.
by hutchike December 4, 2008 4:40 AM PST
The Java 6u10 (and latest 6u11) is designed to load the bits you need only when you need them. It's *meant* to be faster?
Reply to this comment
by dalef December 4, 2008 7:11 AM PST
"Internet Explorer is owned by Microsoft. Firefox is owned by Google, at this point." - Sun CEO Jonathan Schwartz.

Since when is Mozilla Firefox owned by Google?
Reply to this comment
by M A December 4, 2008 8:13 AM PST
Follow the money.

Google throws a lot of $$ over to Mozilla..last I read about 88% of Mozilla's revenue comes from Google.
by jlongino December 4, 2008 8:24 AM PST
Mozilla Foundation receives anywhere from 85-88% (varies by source) of their funding from Google in exchange for search referrals and being its default browser search engine:

http://en.wikipedia.org/wiki/Mozilla_Foundation

"ownership" is in the eye of the beholder.
by Shankland December 4, 2008 11:00 AM PST
For 2007, Mozilla's search deal with Google provided 88 percent of Mozilla's $75 million in revenue: http://news.cnet.com/8301-1001_3-10102297-92.html

Mozilla includes a default Google start page and defaults to Google in the search box. Mozilla gets a cut of any Google search advertising revenue from resulting searches.
by FutureGuy December 4, 2008 8:03 AM PST
Applets 2.0 RUN!!!
Reply to this comment
by bruw December 4, 2008 8:03 AM PST
The author mentioned about Java being used to write trading applications. does anyone know if there's any speed difference between Java based and C++ based server applications, assuming all else are equal?
Reply to this comment
by MSSlayer December 4, 2008 9:43 AM PST
Not really the JIT compilers speed things up considerably.

Most complaints about the "slowness" of Java are either old arguments or based on using a java app written by an amateur or crappy "professional" developer.

I use Java(and Python and Ruby) for real time tasks or near RT that used to be only reasonable to do in C.
by rakker91 December 4, 2008 10:25 AM PST
Depends on what type of speed you're looking at. From a development stand-point, Java and C# are much faster to code and have a much lower learning curve than c++. From a performance stand-point, many will argue that c++ is faster, and I think it's faster than Java, but speed is all relevant. How fast does it REALLY need to be? Games are written in C# and Java both, which are about as demanding as you'll see. Few business server applications are written in c++ because C# and Java are much faster and easier to code and much safer due to garbage collection and living in a runtime. Personally, because of the high cost of implementation, I rarely see the need to implement anything in c++. I'm sure there are cases, but they're the exception, not the norm.
by FredTester December 4, 2008 3:28 PM PST
Test post.
Reply to this comment
by Jennie1218 December 4, 2008 4:03 PM PST
Businesswise, Flash will be royalty free from Flash Player version 10 and AIR 2.0, and if JAVA FX charges royalty per units, then device manufacturers have no motivation to adapt JAVA FX, which is new and risky.
Reply to this comment
by JavaFX_TL_TL December 4, 2008 4:03 PM PST
JavaFX is too little, too late. It just adds more complexity to web development. Flash is a much better choice.
JavaFX = POS.
Reply to this comment
by AppleSuxLeo December 4, 2008 7:36 PM PST
He looks like a New-Age pony-tailed DWEEB. Eeeew !
Reply to this comment
by sanjayb December 4, 2008 7:58 PM PST
Things will be a little rough for JavaFX at the start. But later in 2009, Sun will include the "Framework Utilization Component Kernel" which should make JavaFX lightning fast. I don't know the specific details but you can find more info if you google the acronymn.
Reply to this comment
by kswartz26 December 5, 2008 1:56 AM PST
Sorry, but Schwartz's comment about Firefox being owned by Google is a retarded thing to say. Firefox is a hell of a lot MORE open-source than Java ever was. Anybody who has followed JCP meetings would know this: Sun has hijacked the entire language for years, and still wields veto power over any enhancement or addition to the platform. Mozilla runs a democracy; Sun, an aristocracy. I seriously doubt JavaFX will be any different -- in fact, given that they are delivering binaries to mobile providers, I would say it's the opposite.

This is too little, too late. Give it up, guys. Sell Java to IBM or Oracle and stick to hardware.
Reply to this comment
by Hunnter2k3 December 5, 2008 4:47 AM PST
I'm not sure what is going to happen with this.
I would like to see it succeed somewhere, but i have a feeling it is just too late for Java, specifically on browsers.

Browsers are no longer slow at executing JavaScript (some need to catch up), which is one of the initial reasons people went to Java and then Flash.
HTML and CSS will soon allow some fantastic elements for use in multimedia. (although, you can still do it using JavaScript just now on the few browsers with speedier JavaScript.)
All we need to do is hope browser vendors will work towards that soon.

Flash... well i just plain don't like Flash, unnecessary resource hog.
Nobody likes a Flash site. N-O-B-O-D-Y. Go away if you do, build a FlashNet browser and leave the WWW alone with your fancy plugins.
And Silverlight is still in the minority just now. (but i still prefer this over Flash anyway, Microsoft actually did do pretty well this time)
Reply to this comment
by igal_alkon December 5, 2008 11:10 AM PST
well, I'm sure gonna test run this one.
sun's stock maybe a bit low for now, and it's far away from it's value in 2000, but it was very stable since then.

and let's not forget sun's servers are very good and used to backbone lots of the internet.
they always gave the developers great solutions, tools and alternatives for free. with MySQL it's a perfect match... it's just my way to say thanks i guess.
Reply to this comment
by jemiller0 December 7, 2008 11:25 AM PST
I agree with Eunice when he said "I'm invariably skeptical that a language you don't know yet is going to be easier than all the languages you do know." I don't understand why Sun hasn't been improving the Java language itself like Microsoft has been doing with .NET. I would have preferred that they make the Java language itself easier to use rather than coming up with an new language. For example, .NET has a lot of nice features that Java is missing such as events, properties, partial classes, lambdas and other things that solve problems and make everyday programming easier and more succinct. Another thing that found the other day is that if you want to call a web service from an applet on the same server, it still requires you to sign the applet since the XML parser attempts to read a system property which isn't allowed for non-signed applets. This means that users have to approved allowing an applet to run to do something as simple as call functions via a web service on the same server. The fact that a rough edge for something basic like this exists tells me that Sun is behind Flash and Silverlight.
Reply to this comment
by pierre_normal December 7, 2008 10:35 PM PST
That's right, Eunice, no more innovation, the world's had enough. Personally, I just downloaded the SDK, and I'm having a blast. Javascript is a pig of an environment for anything rich, and I'd love to bypass MS and Google with a permamently installed app - with a runtime someone else maintains. Cool beans...
Reply to this comment
(25 Comments)
  • prev
  • 1
  • next
advertisement

15 sites that went kaput in 2009

Web sites launch all the time, but they also shut their doors. We highlight 15 that bit the dust this year.

Top 10 news stories of the decade

Let the debate begin: Was the iPhone more important than iTunes? Was anything bigger than Google finding a great business model? CNET offers its list of the 10 most important stories of the '00s.

About Business Tech

Your destination for the latest news on enterprise-level information technology, from chip research and server design to software issues including programming, open source and patents.

Add this feed to your online news reader

Business Tech topics

advertisement
advertisement

Inside CNET News

Scroll Left Scroll Right