![]() The Ant script creates all applicable self-contained application packages and stores them in the directory C:\example\bundles\JavaFXHelloWorldApp. To deploy the JavaFX Hello World example as a self-contained application, add the attribute nativeBundles="all" to the element to the build.xml script:Ĭompile, build, and deploy the JavaFX Hello World example as described in the previous section. ![]() To run the example, at a command-line prompt, change directory to C:\example\dist and run the following command:ġ0.4.2 Deploying the JavaFX Hello World Example as a Self-Contained Application Run the following command to compile, build, and deploy the JavaFX HelloWorld example: Change the highlighted text to the full path of your JDK:Īt a command-line prompt, change directory to C:\example. In the file build.xml, specify the location of the JDK installed in your computer by changing the value of the JAVA_HOME property. Version 1.2: shipped in the JavaFX 2.2 SDK and JDK 7 Update 6Įxample 10-3 Ant Script to Deploy JavaFX Hello World Example ![]() Version 1.1: shipped in the JavaFX 2.1 SDK Version 1.0: shipped in the JavaFX 2.0 SDK Use the following list for version numbers: Once JavaFX Ant task definitions are loaded, the property can be used to check the version of Ant tasks APIs. See Section 7.3.3, "Customizing the Package Using Drop-In Resources." The current directory (".") is added to the classpath to simplify customization using drop-in resources. Example 10-1 Load JavaFX Ant Task DefinitionsĮnsure that you declare the fx: namespace, shown in bold in Example 10-1, because short names for some of JavaFX tasks are the same as those used for some system tasks.
0 Comments
Leave a Reply. |