oveb
oveb

Reputation: 65

Install javaFX on docker image

I have a image based on Linux (CentOS Linux) with Java OpenJDK 11. I'm trying to install javafx on the image by this dockerfile:

USER root
yum -y update   && \
yum install –y openjfx

But when i try to build the image I get "No package javafx available." and " yum install OCoy javafx' returned a non-zero code: 1" What am I doing wrong? Is there another way of including JavaFX libraries on a docker image?

Upvotes: 0

Views: 1754

Answers (1)

edean
edean

Reputation: 496

You could install an alternative JDK, for example Liberica or Corretto, which contain an OpenJFX-Distribution.

Upvotes: 1

Related Questions