Site Archive (Complete)
Java
ERIC BRUNO'S BLOG

Java: The Daily Grind.

by Eric Bruno

June 2007


June 28, 2007

Open Java FX Script


The OpenJFX project is available on java.net, and open to contribution. Get involved, get educated, and get the latest downloads at https://openjfx.dev.java.net/.

As you may have noticed from my recent blog entries, I think Java FX is pretty cool. JavaFX Script is a scripting language that enables you to create rich media and content for deployment on Java environments. It's a declarative, statically typed programming language, and with it you can make direct calls to Java APIs. More imporantly, it makes Java-based GUI development much simpler than with Swing or AWT, and it works well via the Web.

Sun also announced Java FX Mobile, which is a complete mobile operating and application environment built around Java, Java FX Script, and Linux.

With Sun planning to open source all of Java FX Script, and maybe even Java FX Mobile, this is your chance to make sure it becomes what you need it to be. Check out https://openjfx.dev.java.net/ for all of the information on getting involved, downloading the source and latest builds, and the sample applications.

Posted by Eric Bruno at 11:14 AM  Permalink |


June 13, 2007

The Java-less iPhone


Are you confused by all the recent buzz around Sun’s technology? I am.

First we hear that the OpenSolaris zettabyte file system (ZFS) is going to be in Apple’s next OS X release, then we hear that it’s not, then it is, but not in a real useful way (read Mike’s blog for more on this). Next, Linus Torvalds accuses Sun of having a double standard when it comes to the open source community—Linux specifically—but then they decide to settle the world’s open source problems over dinner and wine. However, in Jonathan’s blog, he claims he loves Linux, and the direction that GPLv3 is headed. However, in a previous quote, Torvalds calls GPLv3 a disaster.

All along, Apple has been saying there will be no Java on the iPhone. In fact, the iPhone was to remain closed because developers might write applications that crash the phone, or even the AT&T network. That seems clear enough, until you look more closely at Steve Jobs’ announcement at Apple’s World-Wide Developers Conference a few days ago. He specifically said that Ajax and Safari are the solution to opening up the iPhone to developers. What’s an Ajax application? JavaScript on the client (the browser) interacting with Java on the server. So JavaScript is the answer for security on the iPhone? It seems to me that the more robust security model will exist with the Java code on the server.

In the early days of Web development, scripting languages were popular when CGI applications were first launched. Perl; JavaScript; VBScript in Active Server Pages; these were all early examples of scripting languages chosen for Web application development. Back then, Java Applets were popular within the browser because they ran in a VM—a sandbox if you will—where their actions could be controlled and made more secure. There were two main problems that existed with this approach:

1 - Applets required the Java VM and runtime to be installed on the client. This would result in large downloads in what was a world of mostly dial-up modem connections. The large download times kept Java Applets grounded.
2 - Scripting languages proved too inefficient and un-secure to run at the server, where large quantities of user requests are handled simultaneously.

The solution was to flip the model: Java on the server; Script on the client - immediate problem solved. But things have changed since then; connection speeds improved with broadband adoption, browsers have opened up more of the underlying OS to script code, and mobile devices have grown in usage and capabilities.

Java now belongs on the client, within its secure environment (the VM, a.k.a sandbox), platform-neutral as always. Instead, Apple is pushing developers to write Safari applications that will only run in Safari, where Safari runs. Suddenly, the Safari-on-Windows announcement makes a whole lot more sense. How will Apple be able to expose the functionality of the iPhone to JavaScript applications? By exposing Safari-specific hooks into the “OS X for iPhone” OS. This means that Safari applications--which include iPhone applications--will run only where Safari runs: the Mac, iPhone, and Windows. What about Solaris and Linux?

I’m still confused. Why is Linus so upset at Sun? And more importantly, how will he know what wine to bring if Jonathan doesn’t open up and announce what he’s planning to cook?

Posted by Eric Bruno at 10:53 PM  Permalink |


June 03, 2007

Java FX Tools


When Sun announced Java FX, what went through your head?

Many people at Sun were very excited with the announcement of Java FX at JavaOne this year. Slated as an Adobe Flash killer, Java FX was met with a lukewarm reaction by most Java developers. Perhaps many thought it was just another Java-compatible scripting language, or Sun's late attempt to simplify the environment? Either way, you can't deny Java FX does make it easy to build some pretty neat Web-enabled GUI widgets and applications.

Now, as third-party tools are starting to appear, some developers are taking notice. ReportMill Software, for instance, has released a development tool called JFXBulder. Although the tool is strictly in pre-release form, you can try it yourself at their site. It's lauchable as a Java Web-start application. Key Features include:

- JFX Page Layout
- Drag and Drop Components
- Don't expect much yet...
- Draw boxes, lines, polygons, text
- Drag and drop a Button, Text, Slider
- A "Preview JFX" button that allows you to easily try out your Java FX application

It will be interesting to see what the future holds for Java FX, and to see what new Java FX tools and applications arrive on the scene. I for one would love to see a Java FX-powered phone similar to the one shown at JavaOne. It seems like it would be a nice iPhone competitor.

What's your opinion on Java FX? Was your reaction "WOW!" or "So what?" Post a comment to this blog, and let me know.

Happy coding!
-EJB

Posted by Eric Bruno at 11:29 PM  Permalink |



November 2007
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  


BLOGROLL
 
INFO-LINK


Related Sites: DotNetJunkies, SD Expo, SqlJunkies