How-To's > How do I deploy my application?

Version: JavaFX 1.3

You can deploy your JavaFX application in the following ways:

Before you deploy your application, you must package it to create the proper files, then make some configuration changes.

You can package your application by using either the NetBeans IDE or the JavaFX Packager utility, which is included with the JavaFX SDK. Both methods generate the appropriate files for the type of application you choose.

For specific instructions on how to package and deploy your application, see the Related Links section for a link to the deployment tutorials.

Running Applications in a Browser

You can embed your application in a web page by copying scripts that are generated when you package the application. The application will run in any browser that is Java-enabled. When the user accesses or refreshes a web page containing a JavaFX application, the browser launches the Java runtime, which downloads and caches the application and displays it as part of the web page.

Java Web Start Applications

Java Web Start applications are launched the first time from a link in a web page. When the user clicks the web link, the application is downloaded and cached locally on the user's computer. The Java WebStart software component runs the application on the desktop, and every time the user starts the application, it checks the application's web site to see if a new version is available. Users are presented with an option to create a desktop shortcut to the application, if that feature is enabled.

Mobile Applications

Deployment to mobile devices requires the use the JavaFX API Common Profile when you develop your application. To test your application, you can use the JavaFX Mobile Emulator, embedded in the NetBeans IDE.

To preview your application in the JavaFX Mobile Emulator:

  1. In the NetBeans Projects window, right-click the project's root node and select Properties, or select File > Project Properties.

  2. In the Categories pane, select the Run category, then for the Application Execution Model, select Run in Mobile Emulator.

  3. Select a mobile phone emulator style from the dropdown list.

TV Applications

Deployment to TV requires the use the JavaFX API Common Profile when you develop your application. To test your application, you can use the JavaFX TV Emulator, embedded in the NetBeans IDE. See the following article for information about compiling and deploying your application for TV:

Related Links

Last Updated: September 2010
[Return to How-To's Home]