The JavaFX classes must be loaded from a set of named `javafx.*` modules on the _module path_. Loading the JavaFX classes from the classpath is not supported. The JavaFX runtime logs a warning at startup if the JavaFX classes are not loaded from the expected named module. See [
JDK-8256362](https://bugs.openjdk.java.net/browse/JDK-8256362) for more information.