Forum Stats

  • 3,728,472 Users
  • 2,245,631 Discussions


Exception in Application start method - Location is not set

User_TJDP4 Member Posts: 1 Green Ribbon

Firstly, I've looked everywhere and tried different options but none of them worked for me. But yeah, I am just starting out with JavaFX (I'm using javafx-sdk-11.0.2), and I am trying to build a simple application for object detection. I am getting the following error on my console:

As I can understand the FXMLLoader can't find the .fxml files. I've search around, and tried different locations also tried to add and delete the '/'s, but no luck. Actually I am sure that I've set the location correct, but yeah I don't know what's wrong.

Here's where I am getting the error (

I've also tried to add '/' at the start like: ("/view/MainView.fxml")); also tried ("/MainView.fxml"));, but couldn't get it to work.

Here are my fxml files located:

What am I doing wrong? How can I fix this?

Sign In or Register to comment.