0

I am building a simple Java FX Application which works fine in eclipse, but as soon as I export it to jar form the Root Layout cant be loaded :/ Code for it:

// Load root layout from fxml file.
        FXMLLoader loader = new FXMLLoader();
        loader.setLocation(getClass().getResource("../../../../../resources/de/mattech/finance/fxml/RootLayout.fxml"));
        rootLayout = (BorderPane) loader.load();
        // Show the scene containing the root layout.
        Scene scene = new Scene(rootLayout);
        primaryStage.setScene(scene);

My Package/Project View: The Code above is in the GuiCore class. I Dont get why it doesnt work in exported jar form :/
enter image description here

Mattizin
  • 350
  • 1
  • 6
  • 19

0 Answers0