-----
How Do I Run a Sample Application?
The steps in this section explain how to download and run the sample applications that are available as a separate download with the Java Platform (JDK 7).
Note:
Before you can run a sample JavaFX application, you need to have the JavaFX runtime libraries on your machine. Before you proceed with these steps, either install the latest version of the JDK 7 or the latest version of the JRE.
|
To download and run the sample applications:
- Go to the Java SE Downloads page at
http://www.oracle.com/technetwork/java/javase/downloads/index.html
. - Scroll down to locate the JDK 7 and JavaFX Demos and Samples section.
- Click the Demos and Samples Download button to go to the downloads page.
- On the Java SE Development Kit 7 Downloads page, scroll down to the JavaFX Demos and Samples Downloads section.
- Download the zip file for the correct operating system and extract the files.The javafx-samples-2.2.x directory is created and contains the files for the available samples. The NetBeans projects for the samples are in the
javafx-samples-2.2.x\src
directory. - Double-click one of the executable files for a sample.For example, to run the Ensemble sample application, use any of the following methods:
- To run Ensemble as a standalone application, double-click the
Ensemble.jar
file. - To run Ensemble in the browser, double-click the
Ensemble.html
file. - To run Ensemble as a Web Start application, either double-click the
Ensemble.jnlp
file or double-click theEnsemble.html
file. JavaScript code engages the Java Deployment Toolkit to ensure the user environment has the required Java and JavaFX runtimes.
-----
copied from: http://docs.oracle.com/javafx/2/overview/jfxpub-overview.htm
No comments:
Post a Comment