2

When I am creating my JavaFX file in jdk12, it shows the following error:

The JavaFX run time is not configured. Either use a JDK that has the JavaFX built in or add a JavaFX library to classpath

How can I resolve this?

Brennan Vincent
  • 10,736
  • 9
  • 32
  • 54

1 Answers1

1

JavaFX has been removed as of JDK11 this means that Orcale JDK11 and above does not contain JavaFX anymore. You have to get it yourself.

You can use Oracle JDK version < 11 or an OpenJDK that has javafx build in or you can donwload it from here https://openjfx.io/ and get started.

Here is a great SOF question about JavaFX and OpenJDK

HTH

Peter
  • 4,752
  • 2
  • 20
  • 32