Location is required in JavaFX with gradle

前端 未结 4 643
不思量自难忘°
不思量自难忘° 2020-12-31 17:23

I\'m getting

java.lang.NullPointerException: Location is required.

when I run my program after assembling using gradle with jav

4条回答
  •  有刺的猬
    2020-12-31 18:19

    I'm really late to the party...but the accepted didn't work. I (randomly) added 'javafx.fxml' to the list of modules, like this

    javafx {
        version = "14"
        modules = [ 'javafx.controls', 'javafx.fxml']
    }
    

    ...and it solved the issue.

提交回复
热议问题