Java Reference
In-Depth Information
After your application is completed, built, and ready to be deployed, you can
build an archive file using the entire contents of the dist directory. Common tools
for this are zip and tar . Another option is to include these files in an install tool.
Distribution Files
MyFirstJavaFXApplication.jar
MyFirstJavaFXApplication.html
MyFirstJavaFXApplication.jnlp
MyFirstJavaFXApplication_browser.jnlp
lib/
To run the application, make sure the JavaFX SDK is installed, then install the
distribution, and run the following command:
javafx -cp dist/MyFirstJavaFXApplication.jar
myfirstjavafxapplication.Main
Using this command, you can easily create desktop launchers to run your appli-
cation. Or you can use the Java Web Start by launching the dist/MyFirstJavaFX-
Application.jnlp file.
Developer Warning: The -jar option to execute directly from the JAR file
does not currently work with JavaFX; however, this is a known bug and will be
addressed in a future release.
There is also a means for deploying JavaFX applications via the World Wide
Web using Java Applets or the Java Web Start protocol that we will discuss in
Chapter 9. The MyFirstJavaFXApplication.html, MyFirstJavaFXApplication.jnlp,
and MyFirstJavaFXApplication_browser.jnlp provide example files that may be
used for this.
Command Line
If you want to develop without the NetBeans IDE for JavaFX 1.2 development
kit, download the JavaFX SDK from www.javafx.com. There are installers for
 
 
Search WWH ::




Custom Search