Hello all,
I am a JavaFx newbie (and I am not a HTML or script expert). I am implementing my first JavaFx application (JavaFx 2.0) and I succeeded to get it startable out of NetBeans (by Run Main project) and, without NetBeans, by click on the jar file. That works fine.
JavaFx feature description says that a JavaFx application is startable
1) standalone
2) within a browser
3) via WebStart
So as next step I want to get it started within a browser; as I understood the feature description, I would have to include a JavaScript tag (or anything else) into a HTML page, so the JavaFx application would be embedded within the browser window, looking similar to active components like
JSP,
JSF etc. Is that correct? From Oracle JavaFx forum, I got the hint to use NetBeans, that would generate all package files.
In fact, NetBeans generates a launch.jnlp file and a launch.html file referring this jnlp (for the WebStart), but it does not generate a HTML file, and I have no idea what to write.
I also tried to insert a tag <fx:deploy ...> within build-impl.xml, with definition of xmlns:fx, but that is not even compilable (Problem: failed to create task or type javafx:com.sun.javafx.tools.ant:deploy; Cause: The name is undefined).
I also read the Oracle deployment tutorial, but that describes JavaFx 1.3 and that is not compatible to JavaFx 2.0 (or I followed it somehow incorrect). So what is to be done to get the JafaFx 2.0 application started within the browser? What do I have to write in a HTML page? And what do I have to specify in NetBeans project properties or in the build.xml or build-inpl.xml (if that requires any certain settings)?
The tools I currently use are:
NetBeans 7.1 RC1
JavaFx_2.0_SDK
Java JRE 7
Thank you very much for any support.
Best regards
Gerhard