The jfxrt.jar is located in the extension directory called 'ext' where Java is installed. JavaFX is bundled with the JDK as an extension. JDK-8 Only: Delete jfxrt.jar (or move it to a different directory) If you use an IDE without current support, OpenJFX will not compile and you will not be able to run from within the IDE. This will be explained later on for each particular IDE. Once you have downloaded and installed an IDE, you will need to configure it to the latest JDK version. You are encouraged to work with your IDE's development team to resolve these. Not all IDEs will be able to advance equally in their support (some still have bugs with lambdas from JDK8), so keep in mind that there will be bugs. All these require IDE support, which means that you should always use the latest IDE versions, even early access builds. Later versions will bring more language changes. JDK9 brought modularization to the platform (including OpenJFX) and JDK10 brought Local-Variable Type Inference (AKA "var").
In particular, if you try to mix a 32-bit JDK and a 64-bit JDK, the binaries will fail to load.
If you are building and running native libraries, you need to make sure you use the same version of JDK for NetBeans that you use to build JavaFX with gradle. Starting from JDK11, JavaFX/OpenJFX is not included in the JDK anymore. You can use the latest stable version or early access builds which can be found on (replace the number for later versions). You should use the latest OpenJDK when developing OpenJFX as OpenJFX continuously bumps the minimum JDK version. In the future, we may move to gradle builds within the IDE's as support becomes better. They will conflict with the pre-generated IDE files. IMPORTANT: Ensure that you do not have gradle plugins for NetBeans or Eclipse (for Eclipse specific gradle configuration, see below) installed.
#NETBEANS VS INTELLIJ UPDATE#
As the IDE's support for gradle improves, we may be able to update these instructions to rely on that support instead of the checked-in project files that we have today. Despite the fact that most of the major IDE's support gradle directly, we have decided to provide pre-generated IDE configuration files in order to make using an IDE smooth and painless.