« 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/services/trackback/6a00e54f133d69883400e54f8cdf9c8833

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

Comments

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.

"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

Nice post, but the SDK is still missing the #1 thing on my list: Media.

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?

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

My Photo

Upcoming Speaking Engagements:


  • Stephen Chin and Jim Weaver speaking about JavaFX Platform

  • Speaking on JavaFX and Java at Øredev in Malmö, Sweden on 2-6 November, 2009

Upcoming JavaFX Training:


  • Developing Secure, Rich Internet Applications Hosted on a Variety of Clients Using JavaFX Technology

Enter your email address:

Delivered by FeedBurner

Available now as early access eBook


  • Click book image above to obtain eBook

Twitter Updates

    follow me on Twitter

    Affiliations:

    DZone Links:


    July 2009

    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 31  

    Disclaimer:

    • By reading this site, you are agreeing that under no circumstances will Veriana Networks, Inc. or its affiliates be responsible for (1) any information contained on or omitted from the site, (2) any person's reliance on any such information, whether or not the information is correct, current or complete, (3) the consequences of any action you or any other person takes or fails to take, whether or not based on information provided by or as a result of the use of the sites.