You can build the embedded OpenJFX sources for a Linux/x86 desktop. This has slightly different behavior to the regular OpenJFX for Linux:

To build, prepare an Ubuntu build machine as you would for a desktop build. Then install the following additional packages:

Build with

gradle -PCOMPILE_TARGETS=x86egl sdk

Run Java using the OpenJFX binaries that are created in the output directory build/x86egl-sdk/rt. The easiest way to do this is to run a regular Java 8 JRE with the command-line parameter:

-Djava.ext.dirs=build/x86egl-sdk/rt/lib/ext

To run using accelerated rendering to an X11 window, use the flags:

-Djavafx.platform=monocle -Dmonocle.platform=X11 -Dembedded=monocle

To run using software rendering to a framebuffer, use the flags:

-Djavafx.platform=monocle -Dmonocle.platform=Linux -Dprism.order=sw