« Developing Your First Compiled JavaFX Script Program - CompiledHelloJavaFX | Main | A Simple Compiled JavaFX Script Example of Using Sequences »

November 24, 2007

Obtaining the OpenJFX Script Compiler Just Got Easier

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

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/t/trackback/2709996/23633914

Listed below are links to weblogs that reference Obtaining the OpenJFX Script Compiler Just Got Easier:

Comments

That is great news, Jim.

I'm told that the media classes will be available as soon as the licensing issues are addressed.

Nice post, but the SDK is still missing the #1 thing on my list: Media. I tried some code from JavaONE and received: java.lang.NoClassDefFoundError: com/sun/media/jmc/Media :( You had me excited for a second!

Hello,

I am new to javafx and i created a simple javafx application in netbeans. I want to know where the class files for *.fx files are created when the project is build.And how to run the .fx file through commandline using javafxc

thanks

Terra,

Thanks for your kind words. You'll need to set the PATH variable in such a way that the desired bin directory is referenced. I use two different command scripts based upon which I want to run the interpreted or compiled javafx script. Thanks, Jim

This is a additional explanation to my question about the usage of the 'javafx' command.
-----
Should I change the order of specification (or description) of command file's directories in the PATH environment variable? Or, should I specify the fully qualified file name like "C:\openjfx-compiler\dist\bin\javafx" or "C:\openjfx-interpreter\trunk\bin\javafx"?

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?

Post a comment

If you have a TypeKey or TypePad account, please Sign In