Blog
Supporting OpenJFX 11 from JDK11 onwards in e(fx)clipse
So starting with JDK-11 OpenJFX is not part of any downloadable distribution. As JavaFX is designed to run on the module-path (and tested only there) you have 2 options to run JavaFX inside OSGi: * You create your own JDK-Distribution using jlink * You launch the VM you want to use JavaFX adding the JavaFX-Modules While the 2nd solution is doable for RCP-Applications it is less than a nice one, and for integrating into external frameworks (like the Eclipse IDE) it is not possible at all. So we need a different solution to satisfy both usecases. The solution to this problem is that e(fx)clipse installs a classloader hook using the Equinox AdapterHook-Framework (you can do crazy stuff with that) and on the fly spins up a new Java-Module-Layer containing all the JavaFX-Modules and uses the classloader from the Module-Layer to load the JavaFX-Classes.
With this strategy you can supply the JavaFX-Modules (including the native bits) required for your application to run as part of your p2-repository.