JavaFX example with Gradle Kotlin DSL Make sure to have JAVA_HOME set to at least Java 11. To run the application execute the task run.