从JavaFX 2.2迁移到JavaFX8会导致部署问题

时间:2015-03-24 04:29:03

标签: java javafx-8

我尝试从JavaFX 2.2升级到JavaFX 8.我的应用程序在Netbeans IDE中完美运行,但是当我尝试部署它时,我没有收到以下错误:

CacheEntry[file:/Users/dynelight/Dropbox/PruebasEspecificas/pruebas-especificas/dist/PlataformaValidezPredictiva.jar]: updateAvailable=true,lastModified=Mon Mar 23 22:12:20 CST 2015,length=186644
CacheEntry[file:/Users/dynelight/Dropbox/PruebasEspecificas/pruebas-especificas/dist/lib/jfxswt.jar]: updateAvailable=false,lastModified=Tue Feb 10 14:08:58 CST 2015,length=33793
CacheEntry[file:/Users/dynelight/Dropbox/PruebasEspecificas/pruebas-especificas/dist/lib/mysql-connector-java-5.1.23-bin.jar]: updateAvailable=false,lastModified=Tue Nov 18 12:37:18 CST 2014,length=827901
java.lang.NullPointerException: Location is required.
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3211)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3179)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3152)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3128)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3108)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:3101)
    at plataformavalidezpredictiva.PlataformaValidezPredictiva.start(PlataformaValidezPredictiva.java:22)
    at com.sun.javafx.applet.FXApplet2$2.run(FXApplet2.java:143)
    at com.sun.javafx.application.PlatformImpl.lambda$null$170(PlatformImpl.java:295)
    at com.sun.javafx.application.PlatformImpl$$Lambda$47/1526012221.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$171(PlatformImpl.java:294)
    at com.sun.javafx.application.PlatformImpl$$Lambda$46/326549596.run(Unknown Source)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: java.lang.NullPointerException: Location is required.
    at com.sun.javafx.applet.FXApplet2$2.run(FXApplet2.java:159)
    at com.sun.javafx.application.PlatformImpl.lambda$null$170(PlatformImpl.java:295)
    at com.sun.javafx.application.PlatformImpl$$Lambda$47/1526012221.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$171(PlatformImpl.java:294)
    at com.sun.javafx.application.PlatformImpl$$Lambda$46/326549596.run(Unknown Source)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
Caused by: java.lang.NullPointerException: Location is required.
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3211)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3179)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3152)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3128)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3108)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:3101)
    at plataformavalidezpredictiva.PlataformaValidezPredictiva.start(PlataformaValidezPredictiva.java:22)
    at com.sun.javafx.applet.FXApplet2$2.run(FXApplet2.java:143)
    ... 6 more

PlataformaValidezPredictiva.java:22具有以下内容:

Parent root = FXMLLoader.load(getClass().getResource("fxml/Login.fxml"));

有什么想法吗?

目录结构(对不起,它有点乱):

0 个答案:

没有答案