Skip to main content

JavaFX Script compiler with NetBeans

3 replies [Last post]
ron_y
Offline
Joined: 2008-01-02

I am trying to wrap my head around how to use the JavaFX Script compiler. It appears to be a separate command line process. Does anyone know of an easy way to integrate it with Netbeans so that doing a build there or running an application will automatically run the script compiler prior to execution?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kaiguy
Offline
Joined: 2007-08-02

When you checkout the JavaFX compiler project via Subversion, it is already set up as a NetBeans project. Just open it in NetBeans (6.0), build, and you should have a javafxc.jar to use.

Regards,
-Brad Mayer

ron_y
Offline
Joined: 2008-01-02

Thanks Brad.

Either I don't understand your answer or you didn't understand my need. I want to use compiled JavaFX scripts from within my Netbeans environment without having to go to a command line prompt to compile the scripts. I do compiles, builds, and runs all from Netbeans and although I am using JavaFX script now, I understand it is running interpreted.

Are you saying that putting the javafxc.jar in the Netbeans project lib it will automatically compile the scripts without having to run javafxc.bat? I already have the javafxc, javafxrt, and scenario-0.4 jars from a prebuilt distribution on the web site, but there is NO documentation on how to utilize them.

whp
Offline
Joined: 2006-06-09

I think, as Netbeans build system is Ant based, that you could modify Ant xml files for your Netbeans' JavaFX's projects to use JavaFX Script compiler. As I didn't check if it is possible I cannot guide how to do it now, but you can e-mail me and I could spend some time on getting it done. My e-mail address is: wojciech.halicki.piszko[AT]gmail.com