Opps, I see the class in the jar. Ok, there does seem to be a problem in setting beans in the script, I get the exception javax.script.ScriptException: Invalid binding name project for all the names used (self, basedir etc). Commenting out the setting of the beans, the following works: <script language="FX" manager="javax"> <classpath> <fileset dir="${user.home}/apps/openjfx/trunk/lib"/> </classpath> import javafx.ui.*; Frame { title: "Hello World JavaFX" width: 200 height: 50 content: Label { text: "Hello World" } visible: true } </script> <sleep seconds="10"/> </project>
I have sent an email to the openjfx mailling list about the problem. Peter On 5/10/07, Peter Reilly <[EMAIL PROTECTED]> wrote:
Should be no need to do anything special Ant 1.7.0 supports the javax scripting and there is a javax scripting engine for javafx. Unfortunately, it does not seem to be released yet. the engine is net.java.jsr223.JavaFXScriptEngine in the SPI for javax.script.ScriptEngineFactory in the javafxft.jar file. Peter On 5/10/07, Kevin Jackson <[EMAIL PROTECTED]> wrote: > Hi all, > > Is there a need to support JavaFX in Ant going forward? We already > support javascript via bsf & javax.scripting, we also support a > multitude of dynamic/scripting languages, should we add support for > this one? > > Kev > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]