Guest User

Untitled

a guest
Jan 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. public void initRootLayout() {
  2. try {
  3. // Load root layout from fxml file.
  4. FXMLLoader loader = new FXMLLoader();
  5. loader.setLocation(MainApp.class.getResource("../views/FXML/Root.fxml"));
  6. rootLayout = (BorderPane) loader.load();
  7. [...]
  8.  
  9. .
  10. ├── out
  11. ├── artifacts
  12. └── LagerGUI
  13. ├── LagerGUI.html
  14. ├── LagerGUI.jar
  15. └── LagerGUI.jnlp
  16. ├── logs
  17. └── log.txt
  18. └── production
  19. ├── Controllers
  20. ├── Logger
  21. ├── MainApp
  22. ├── META-INF
  23. ├── structs
  24. └── views
  25.  
  26.  
  27. ├── src
  28. | ├── MainApp
  29. └── MainApp.java
  30. └── views
  31. ├── Controllers
  32. └── FXML
  33. └──Root.FXML
  34.  
  35. [...]
  36. Caused by: java.lang.IllegalStateException: Location is not set.
  37. at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2434)
  38. at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2409)
  39. at MainApp.MainApp.initRootLayout(MainApp.java:226)
  40. at MainApp.MainApp.start(MainApp.java:213)
  41. at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$106(LauncherImpl.java:863)
  42. at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$119(PlatformImpl.java:326)
  43. at com.sun.javafx.application.PlatformImpl.lambda$null$117(PlatformImpl.java:295)
  44. at java.security.AccessController.doPrivileged(Native Method)
  45. at com.sun.javafx.application.PlatformImpl.lambda$runLater$118(PlatformImpl.java:294)
  46. at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
  47. at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
  48. at com.sun.glass.ui.gtk.GtkApplication.lambda$null$450(GtkApplication.java:139)
  49. ... 1 more
  50. Exception running application MainApp.MainApp
Add Comment
Please, Sign In to add comment