JavaFX 2.0.3 Installation Guide
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
The JavaFX SDK and Runtime are included in the JDK, starting with Java SE 7 Update 2. Download the JDK bundle from the JavaFX Downloads page, then go to the JDK Installation Guide.
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 SDK File Structure 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 using an older version of the JDK than 7u2 and do not plan to install the JavaFX SDK.
To install the JavaFX Runtime:
-
Verify your system requirements.
-
Go to the JavaFX Downloads page.
-
Find the JavaFX Runtime downloads, click the link for your operating system, and follow the prompts to save the executable file.
-
Run the .exe file.
The default installation directory is C:\Program Files\Oracle\JavaFX 2.0 Runtime.
Install NetBeans IDE
JavaFX 2.0.3 requires NetBeans IDE 7.1, which you can download from the JavaFX Downloads page.
See Setting Up NetBeans IDE With JavaFX for information on configuring your system.
JavaFX Samples
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-2.0.3\src directory. To view the source code, go to the javafx-samples-2.0.3\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 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"
- bin/
-
SDK build tools.
- docs/
-
API documentation.
- rt/
-
JavaFX Runtime directory.
- tools/
-
Ant tasks used by NetBeans for packaging and deployment.
- COPYRIGHT.html
-
Copyright information for JavaFX documentation.
- README.html
-
A pointer to the README.html document, which provides information about the JavaFX SDK.
- THIRDPARTYLICENSEREADME.txt
-
License information for third-party software included in the JavaFX SDK.