Deploy A Rich Internet Application Developed With JavaFX Technology
- Skill Level Beginner
- Product JavaFX
- Key Features JavaFX Deployment
- Last Updated May 2009
This document guides you through the steps of using NetBeans IDE 6.5.1 for JavaFX 1.2 to prepare a JavaFX application for execution and deployment outside of the IDE.
Overview
The goal of this tutorial is to show you how to create a distributable JavaFX application that uses NetBeans IDE 6.5.1. The IDE provides a dialog interface to the javafxpackager tool that is bundled with the JavaFX 1.2 SDK installation. The tool provides the means to package for deployment the files that comprise a JavaFX application. You will configure a sample JavaFX application to execute as an applet, a desktop application, or a mobile application by choosing one of the four execution models available:
- Standard Execution.
Run as a stand-alone desktop application by using the standard
javafxexecution command. This is the default selection. - Web Start Execution. Run as a stand-alone desktop application by using Java Web Start technology.
- Run in Browser. Run as an applet-based desktop application within a local web browser.
- Run in Mobile Emulator. Run as a MIDlet based mobile application running on the bundled JavaFX Mobile Emulator. This option is currently available in Beta version on the Microsoft Windows platform only.
This tutorial guides you through configuring the sample application to use each of the execution models, building the necessary files to execute the application, and running the project from within the IDE. It also provides information about how you can execute the application outside of the IDE and offline from network connection.
If you prefer to use the command line instead of the IDE to package the files that are necessary to deploy your application, refer to the javafxpackager.html document that is located in <javafx-sdk-install-dir>/docs folder.
Tutorial Requirements
Before you continue with this tutorial, ensure that you have either NetBeans IDE 6.5.1 for JavaFX 1.2 installed on your system or that you have added the JavaFX 1.2 Plugin to your existing NetBeans IDE 6.5.1 installation. Refer to What to Download for more information.
Cindy Castillo
Technical Writer, Sun Microsystems