How to add JavaFX library to docker image

Oveb shared this question 7 months ago
Answered

I'm using Yellowfin 9.6 and want to use ability to export both Dashboards and Present to PDF. In https://community.yellowfinbi.com/knowledge-base/article/yellowfin-9-3-and-exporting-dashboardspresent-to-pdf on of the requirements is JavaFX. Found a guide to add JavaFX to system https://community.yellowfinbi.com/topic/how-do-i-add-javafx-to-my-system but not in docker image. How can I add it?

Comments (2)

photo
1

Hey Oveb,


Thanks for the detailed info!

Ok so a few things here;

  • The Official YF Docker image already comes bundled with a Java version that supports JavaFX (the Azul Java version).
  • For exporting dashboards to PDF, there was a potential bug that users could run into when exporting to PDF that has been patched in the YF 9.7 Docker image.
  • If you are using a custom image, you will need to use external articles that best match your scenario. We can provide some guidance here, just need to know what Java distribution you are using.

Please let me know how it all goes!


Thanks,

David

photo
1

Hi David,

Thanks for the reply.

Yes I'm using a custom image and OpenJDK 11.0.2. I'm using Maven to get the artifacts org.openjfx. And copying to the image.

Regards,

Oveb

photo
1

Thanks Oveb,


Ok I think this article will help you here: https://openjfx.io/openjfx-docs/#maven

If you need further assistance with custom docker deployments just let me know and I'll reach out to our professional services team who should be able to assist further, and as always if you needed anything else please let me know.


Regards,David

photo