tornadofx: JAVA 11: Getting the View by fxml() return an error.

Hello, I have JavaFX Application I started to migrate into TornadoFX. Q: I have an issue when I want to load an FXML file ( I created it before on the JavaFX)

class LoginView : View() {
override val root:AnchorPane by fxml("/fxml/LoginView.fxml")
}

My LoginView.fxml located on src/main/resources/fxml/LoginView.fxml Errore: component.javaClass.getResource(resource) must not be null

Note: I am using Maven + Java11 + TornadoFX 1.7.20

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (10 by maintainers)

Most upvoted comments

TornadoFX 1.7.10 doesn’t support JDK 9+, you should use the snapshot versions https://github.com/edvin/tornadofx/issues/899#issuecomment-488249680

Thank you, I’ll use the snapshot.