- Loading...
Info |
---|
This page contains instructions for building OpenJFX 8u-dev for JDK 8u, as well as gradle examples, and is somewhat out of date. |
If you are looking to build OpenJFX 9 or later, please see the main Building OpenJFX page.
Building a UI toolkit for many different platforms is a complex and challenging endeavorendeavour. It requires platform specific tools such as C compilers as well as portable tools like Gradle. Which tools must be installed differs from platform to platform. While the OpenJFX build system was designed to remove as many build hurdles as possible, it is often necessary to build native code and have the requisite compilers and toolchains installed. On Mac and Linux this is fairly easy, but setting up Windows is more difficult.
Table of Contents | ||
---|---|---|
| ||
Do you really want to build OpenJFX? We would like you to, but there are some great community builds that may work for you too. JavaFX is bundled by default in desktop editions of JDK 8uNNN (and also in JDK 9).
...
...
To configure your Mac, make sure you have at least version 10.7 installed. Install the latest version of Xcode and that you have the developer tools installed. You can install them by using the menus within Xcode: XCode -> Preferences -> Downloads -> Components. Install the latest JDK 8 build. In order to build WebKit, you will also need to install QT 5CMake 3.2 (because WebKit uses QMake8(or higher).
Anchor | ||||
---|---|---|---|---|
|
...
You will also need to install QT 5.2 cmake 3.8 (or higher) in order to build WebKit (because WebKit uses QmakeCMake). With Ubuntu 16, this will satisfy the requirements:
...
You must also install Gradle. We use Gradle 14.8 for the older 8-dev, although it is known to work with Gradle 3.1 (which is what we use to build FX for JDK 9).
Note: gradle is available as a Ubuntu package, but check the version. This command should work after you set JAVA_HOME:
...
...
As zip bundles do not always preserve permissions, sometimes it is necessary to modify the file permissions to match the others in the JRE. In particular, check the permissions on the extracted native libraries.