Use Table 1 to determine the JavaFX installation that best suits your needs, then follow the instructions to install JavaFX.
Table 1 JavaFX Installations
|What do You Want to Do?||What to Install|
You want to develop JavaFX applications using the latest JDK and NetBeans IDE.
You want to develop JavaFX applications using the latest JDK and have a Java IDE other than NetBeans IDE.
You want to develop JavaFX applications using either NetBeans IDE or the command line, and you are using a version of the JDK older than 7u2.
You only want to run JavaFX applications.
Install the JDK + JavaFX SDK Bundle
Install the Standalone JavaFX SDK
The standalone JavaFX SDK should only be installed if you are using a JDK older than 7u2.
To install the JavaFX SDK:
Verify your system requirements.
Go to the JavaFX Downloads page.
Find the JavaFX SDK downloads, click the link for your operating system, and follow the prompts to save the executable file.
Run the .exe file and complete the steps in the installation wizard.
The default installation directory for the SDK is C:\Program Files\Oracle\JavaFX 2.0 SDK. See JavaFX Samples for the directories and content.
The default installation directory for the Runtime is C:\Program Files\Oracle\JavaFX 2.0 Runtime.
Install the Standalone JavaFX Runtime
The standalone JavaFX Runtime should only be installed if you are an older version of the JDK than 7u2 and do not plan to install the JavaFX SDK.
To install the JavaFX Runtime:
Install NetBeans IDE
JavaFX 2.0.2 requires NetBeans IDE 7.1 (at least a prerelease version), which you can download from the JavaFX Downloads page.
See Setting Up NetBeans IDE With JavaFX for troubleshooting information.
Sample JavaFX applications are available to download from the JavaFX Downloads page. Download the zip file that contains the samples and extract the files to your file system.
To run the samples, you must have the JavaFX Runtime installed. To run a sample on your desktop, click the
.jar file for the sample.
Source code for each sample is in the javafx-samples-version\src directory. To view the source code, go to the javafx-samples-version\src\sample directory, where sample is the name of the application in which you are interested. Each of the sample source directories is a NetBeans project.
You must have NetBeans IDE 7.1 (at least a prerelease version) to build the samples in the IDE. The NetBeans download is available from the JavaFX Download page.
JavaFX SDK File Structure
By default, the JavaFX SDK software is installed at C:\Program Files\Oracle\JavaFX 2.0 SDK. It contains the directories and content shown in Figure 1.
Figure 1 Directories and Content of the JavaFX SDK
Description of "Figure 1 Directories and Content of the JavaFX SDK"
SDK build tools.
JavaFX Runtime directory.
Ant tasks used by NetBeans for packaging and deployment.
Copyright information for the readme.html document.
A pointer to this document, which provides information about the JavaFX SDK.
License information for third-party software included in the JavaFX SDK.