Zdravím.
Chtěl by se zeptat jak správně generovat Jar soubor z javafx aplikace. V eclipse vše funguje. následně nechám vygenerovat spustitelný soubor a po jeho spoštění vypadne výjimka
C:\Users\Admin\Desktop>java -jar SP.jar
Exception in Application start method
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLo
der.java:58)
Caused by: java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown S
urce)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$152
Unknown Source)
at com.sun.javafx.application.LauncherImpl$$Lambda$2/793589513.run(Unkn
wn Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Location is required.
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.load(Unknown Source)
at application.Main.start(Main.java:13)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$15
(Unknown Source)
at com.sun.javafx.application.LauncherImpl$$Lambda$52/41050883.run(Unkn
wn Source)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$172(Unknow
Source)
at com.sun.javafx.application.PlatformImpl$$Lambda$47/26697121.run(Unkn
wn Source)
at com.sun.javafx.application.PlatformImpl.lambda$null$170(Unknown Sour
e)
at com.sun.javafx.application.PlatformImpl$$Lambda$50/835354191.run(Unk
own Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$171(Unknown
ource)
at com.sun.javafx.application.PlatformImpl$$Lambda$48/278401106.run(Unk
own Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$145(Unknown Source)
at com.sun.glass.ui.win.WinApplication$$Lambda$38/1205684458.run(Unknow
Source)
... 1 more
Pokud někdo ví co stím děkuji za radu