~/javafxplay/OpenJFX-200710081507/trunk/demos/demo/demo.sh
It says to "Download the latest OpenJFX Compiler build". It's an archive.zip file. I put it on my desktop, then did
sudo mv ~/Desktop/archive/openjfx-compiler /usr/local/share
It says to set my PATH variable, so I added this to my .bashrc:
# Set up JavaFX
#
if [[ ${HOST} = 'okapi' ]]; then
pathadd /usr/local/share/openjfx-compiler/dist/bin/
fibr
It says Mac users need to do:
chmod ugo+x /usr/local/share/openjfx-compiler/dist/bin/javafxc
chmod ugo+x /usr/local/share/openjfx-compiler/dist/bin/javafx
After logging out and back in, I was able to do
okapi$ javafx -version
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)
Java HotSpot(TM) Client VM (build 1.5.0_13-121, mixed mode)
okapi$
The compiler is documented at Creating Rich Internet Applications With Compiled JavaFX Script Technology,.
As the above suggested, I copied the sample code to ~/javafxplay/mypackage and did
cd ~/javafxplay/mypackage
javafxc HelloCompiledJavaFX.fx
cd ..
javafx mypackage.HelloCompiledJavaFX
I got an UnsupportedClassVersionError, so for now I'm using JavaFXPad to learn the language.