在Windows 10上执行可运行的jar文件的问题

时间:2018-12-28 15:47:22

标签: java executable-jar

我使用文件/导出/ runnablejar文件将正在运行的应用程序打包在eclipse中。 尽管在Eclipse中我没有错误,但是我无法在Windows级别上运行我的应用。

我使用cmd跟踪是否有错误,这是它返回的内容: cmd-> java -jar wypozyczalnia.jar

progress: 0.1
Value@ :0.1
progress: 0.2
Value@ :0.2
progress: 0.3
Value@ :0.3
progress: 0.4
Value@ :0.4
progress: 0.5
Value@ :0.5
progress: 0.6
Value@ :0.6
progress: 0.7
Value@ :0.7
progress: 0.8
Value@ :0.8
progress: 0.9
Value@ :0.9
progress: 1.0
Value@ :1.0
BEFORE_START
Exception in Application start method
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 com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
    at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
    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 sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
Caused by: java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$154(LauncherImpl.java:182)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.util.MissingResourceException: Can't find bundle for base name bundles.messages, locale en
    at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
    at java.util.ResourceBundle.getBundleImpl(Unknown Source)
    at java.util.ResourceBundle.getBundle(Unknown Source)
    at pl.moja.wypozyczalnia.utils.FxmlUtils.getResourceBundle(FxmlUtils.java:30)
    at pl.moja.wypozyczalnia.utils.FxmlUtils.fxmlLoader(FxmlUtils.java:13)
    at pl.moja.wypozyczalnia.Main.load(Main.java:48)
    at pl.moja.wypozyczalnia.Main.start(Main.java:37)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$161(LauncherImpl.java:863)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(PlatformImpl.java:326)
    at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
    ... 1 more
Exception running application pl.moja.wypozyczalnia.Main

您知道根本原因是什么吗?

0 个答案:

没有答案