My previous post walked you through compiling and running a simple compiled JavaFX Script program. It required building the OpenJFX Compiler. Today, I'm going to explain how to save some steps by downloading the latest build of the OpenJFX Compiler rather than building it on your machine. If you decided not to build the compiler because it looked like a hassle, then relax -- this is a lot easier. Just follow the instructions on the PlanetJFX page entitled How to Download the Latest Compiler Build Instead of Building It.
Note: The OpenJFX Compiler Project team plans on having a separate weekly build process soon, which will have versioned binary bundles. This will make obtaining the compiler even faster and easier (and take up less space on your system).
Compiling and Executing Your Program is a Little Easier Now Too
To compile the CompiledHelloJavaFX program from yesterday's blog post, navigate to its directory and use the following command:
javafxc CompiledHelloJavaFX.fx
To run the CompiledHelloJavaFX program, use this command:
javafx CompiledHelloJavaFX
Go and Do Likewise
Now that it's easier to obtain the OpenJFX Compiler, go ahead and play with compiling and running your own compiled JavaFX Script programs! That way you'll be ready to give the JavaFX Puzzler a try. As a reminder, it will be posted at 18:00 GMT (1:00 pm EST) on Wednesday, November 28, 2007. Please post a comment if you have any questions.
Regards,
Jim Weaver
JavaFX Script: Dynamic Java Scripting for Rich Internet/Client-side Applications
Immediate eBook (PDF) download available at the book's Apress site
Great tips on PATH environment. Thanks
Alex
http://www.bookiestore.com
Posted by: Account Deleted | July 21, 2010 at 06:25 AM
I'm always looking forward to your blog update.
I'd like to know how to use both interpreter version and compiler version 'javafx' commands without changing PATH setting. Is it possible?
Posted by: generic valtrex | April 20, 2010 at 08:31 PM
If u want to building traditional besopoke orangeries, please visit my site
http://www.kent-conservatory.co.uk/orangeries.htm
The Kent Conservatory Company have been building traditional besopoke orangeries for over 30 years. All our oraneries combine traditional craftmanship together with modern building technologies.
Posted by: Aloke Saha | June 02, 2009 at 05:48 AM
"Nice post, but the SDK is still missing the #1 thing on my list: Media."
samsung,
Can you clarify? Although it isn't complete or perfect yet, media is supported in JavaFX.
Thanks,
Jim Weaver
Posted by: James Weaver | March 04, 2009 at 08:11 AM