I have work around this bug using a different OpenJFX distribution:
- Download JavaFX Linux SDK from Gluon ( https://gluonhq.com/products/javafx/ )
- Place the archive content in a suitable location (ex. /home/ubuntu/javafx-sdk-11.0.2/)
- Assuming the Java program is packed in a .jar file, start it from command line specifying the Gluon JavaFX library:
I have work around this bug using a different OpenJFX distribution:
- Download JavaFX Linux SDK from Gluon ( https:/ /gluonhq. com/products/ javafx/ ) javafx- sdk-11. 0.2/)
- Place the archive content in a suitable location (ex. /home/ubuntu/
- Assuming the Java program is packed in a .jar file, start it from command line specifying the Gluon JavaFX library:
java --module-path /home/ubuntu/ javafx- sdk-11. 0.2/lib --add-modules= javafx. controls, javafx. fxml,javafx. base,javafx. media,javafx. web,javafx. swing -jar yourprogram.jar
This is a base recipe, your mileage may vary.