Since JDK 8, the Java FX libraries are not included into the standard library (OpenJDK).

To add JavaFX jar files into jre/lib/ext you have to run the following command:

sudo apt-get install openjfx

Tested with OpenJDK 1.8.0_151 on Linux 3.10.0-693.11.6.el7.x86_64 (Debian GNU/Linux 9.3)