The Artima Developer Community
Sponsored Link

Java Buzz Forum
Watch JavaFX SDK Run---On Linux

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Weiqi Gao

Posts: 1808
Nickname: weiqigao
Registered: Jun, 2003

Weiqi Gao is a Java programmer.
Watch JavaFX SDK Run---On Linux Posted: Aug 5, 2008 8:48 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Weiqi Gao.
Original Post: Watch JavaFX SDK Run---On Linux
Feed Title: Weiqi Gao's Weblog
Feed URL: http://www.weiqigao.com/blog/rss.xml
Feed Description: Sharing My Experience...
Latest Java Buzz Posts
Latest Java Buzz Posts by Weiqi Gao
Latest Posts From Weiqi Gao's Weblog

Advertisement

Sun released the JavaFX Preview five days ago. One of the key deliverables of this technology preview release is the JavaFX Preview SDK (the other three being a NetBeans bundle, Project Niles, and JRE 6u10).

The preview release is met with general enthusiasm from the Java camp, with predictable "too little, too late" chants from certain corners of the RIA world. I believe Kirk Pepperdine's analysis to be on the mark:

Kirk Pepperdine: JavaFX has already made a big difference in how client side Java works and this promises to get better. Stephan Janssen (www.parleys.com) demonstrated in a keynote at both JavaONE and TSSJS-Europe that JavaFX can provide an experience that rivals Adobe Air. And we can't forget that JavaFX has the added advantage that is it Java and as such will have all of the rich Java APIs available to it. With this in mind, I'm pretty optimistic that JavaFX, being free and open, will become the preferred choice for building rich clients if....

One thing that people noticed right away is the fact that the JavaFX Preview SDK is available for Windows and Intel/Mac, but not Linux or Solaris. A cursory examination of the Windows and Mac OS X version of the JavaFX Preview SDK reveals that they are almost identical in content. The only differences are in native libraries and startup scripts/executables. The native libraries fall into the area of native audio/video playback and (for Windows) some 3D effects.

"Hmm, I bet if I download the zip version of the Mac OSX release, it would work on Linux!"

And guess what? It—most of it anyway, native video playback being the exception—does work.

Here's what I did:

  • Download the zip version of the Mac OSX release (it contains start-up shell scripts that the Windows release does not)
  • Unzip it in /opt to get a /opt/javafx-sdk1.0pre1/ tree
  • Add /opt/javafx-sdk1.0pre1/bin to $PATH
  • Set $JAVAFX_HOME to /opt/javafx-sdk1.0pre1

With this setup, all the little snippets of JavaFX Script code I've written to test out the language features compile and run fine. What's more, the five sample programs that come with the SDK also run fine. Here's a screen cast of them being run on my Debian 4.0 GNU/Linux amd64 (Linuxy format, you may need to download VLC to view):

"JavaFX

Note that an official Linux version of the JavaFX SDK is promised for release 1.0. This post is only meant for the impatient Linux folks out there who just want to try some of the stuff out.

Read: Watch JavaFX SDK Run---On Linux

Topic: Lazy Loading Caching References Previous Topic   Next Topic Topic: Four harmful Java idioms, and how to fix them

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use