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:
To run the CompiledHelloJavaFX program, use this command:
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.
JavaFX Script: Dynamic Java Scripting for Rich Internet/Client-side Applications
Immediate eBook (PDF) download available at the book's Apress site