some weeks ago I found the Oracle tutorial http://docs.oracle.com/javafx/2.0/deployment/deployment_toolkit.htm#BABJHEJA
Creating a dtjava.App Object:
var app = new dtjava.App( ... );
I had seen that syntax in some JavaFx 1.x descriptions, but not in JavaFx 2.0. And I did not find any definition of dtjava.App. So I am not sure whether this dtjava.App object is to be created in the JavaFx code or in the HTML page.
I had posted the same query earlier in Oracle JavaFx forum (https://forums.oracle.com/forums/thread.jspa?messageID=10008333
) and there I wrote my assumption of Javafx script, and got the confirmation:
Start with getting started section (http://docs.oracle.com/javafx/2.0/deployment/deploy_quick_start.htm#BABJCFHC) and use javafxpackager
(or better ant task) to package app.
But easiest way would be install Netbeans 7.1 and use JavaFX project there. It will use ant task behind the scene to generate all package files.
I tried following the getting started section; this describes an ant task <fx:deploy ...>. As I use NetBeans, I included the fx:deploy task in my build-impl.xml, but NetBeans rejects it as the name fx:deploy is unknown (though I have defined the fx namespace). Maybe I have a syntax error somewhere or need to define the namespace somewhere else or whatever, so perhaps I could succeed the fx:deploy after any correction. Or maybe NetBeans does it easier, if I only find out what to enter in the project properties.
But once I have run the fx:deploy task successfully or once NetBeans has generated all required files, I assume I need any way to invoke the JavaFx application from the browser. The browser loads a HTML page, and how is the JavaFx application referred there? The examples 5-3, 5-4 and 5-5 in http://docs.oracle.com/javafx/2.0/deployment/deployment_toolkit.htm#BABJHEJA
describe inserting a <script> tag in a HTML page. I assume the syntax of that tag might be different for a JavaFx 2.0 application, but the concept of inserting a <script> tag (or perhaps some other tag) in the HTML file looks ok. What is the correct way of referring the application? And what do I have to do to get the application loadable?
Thanky for your support. I wish you a merry Christmas and a happy new year.