The JavaFX™ Software Development Kit (SDK) provides the command-line tools and technologies to develop expressive content for applications deployed to browsers, desktops, mobile, and TV devices. The SDK includes the following components:
JavaFX Desktop runtime
JavaFX Script Compiler and other command-line utilities for developing and executing JavaFX programs
JavaFX Mobile Emulator and runtime (Microsoft Windows and Mac)
JavaFX TV Emulator and runtime (Microsoft Windows)
JavaFX API documentation
See theRelease Notesfor late-breaking information and known issues about the JavaFX SDK.
Thebindirectory in the SDK contains command-line utilities for developing and executing programs written in the JavaFX Script programming language. The JavaFX command-line utilities are similar to the Java command-line utilities.
javafx– Executes a JavaFX application
javafxc– Compiles JavaFX source files on all profiles
javafxdoc– Creates JavaFXdoc documentation on all profiles
javafxpackager– Creates a package of a JavaFX application for all supported targets (desktop, mobile, and TV)
javafxw– Identical to thejavafxcommand, except that withjavafxwthere is no associated console window (Windows only)
For more information about these tools, see thedocumentation indexpage.
Themobilesubdirectory of theemulatordirectory contains the JavaFX Mobile Emulator, a mobile phone simulation. Use the emulator to see how your JavaFX application runs on a mobile phone. The emulator runs compiled classes that are built by using the JavaFX Packager tool. For your code to be compatible with the emulator, you must use the Common and Mobile APIs.
On Windows, the basic command for building all source files for JavaFX and Java sources according to the mobile profile specification is:
\SDK-install-directory\bin\javafxpackager -src .\mysources-appClassmypackage.MyApplication-p mobile
The basic command syntax for running the mobile emulator on Windows is:
On Mac, use a forward slash (/) instead of a backslash (\).
The emulator supports different phone types. Use the-Xqueryoption to list the supported devices. Use-Xdevice:device_nameto specify the device type. See theemulator documentation pagefor more information.
Note:If you are not able to start the emulator, try exiting the device-manager (if it is running, you will see an icon in the system tray or menu bar) and deleting thejavafx-sdkdirectory from your home directory.