I installed OpenJDK-11 as described here.
I ran sudo apt install openjfx
My java version:
$ java -version
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.3+7-Ubuntu-1ubuntu1, mixed mode, sharing)
But still I get ava.lang.NoClassDefFoundError: javafx/application/Application
which indicates that the jre cannot find the FX classes.