Made JavaFX module work by adding JavaFX to extra packages of OSGi system. The VM must have the JavaFX RT installed