Reputation: 21
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?
Upvotes: 2
Views: 1201
Reputation: 5224
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
Upvotes: 1