So I am doing a Java with FXML and for some reason I get this huge error from all the codes I run it with. What could be causing this? I think it's a glitch.
ant -f C:\\Users\\marog\\OneDrive\\Documents\\NetBeansPro jects\\Chapter_12_TEMPLATE\\Chapter_12_TEMPLATE\\C hapter_12_TEMPLATE -Dnb.internal.action.name=run.single -Djavac.includes=addition/Addition.java -Drun.class=addition.Addition run-single
init:
Deleting: C:\Users\marog\OneDrive\Documents\NetBeansProjects \Chapter_12_TEMPLATE\Chapter_12_TEMPLATE\Chapter_1 2_TEMPLATE\build\built-jar.properties
deps-jar:
Updating property file: C:\Users\marog\OneDrive\Documents\NetBeansProjects \Chapter_12_TEMPLATE\Chapter_12_TEMPLATE\Chapter_1 2_TEMPLATE\build\built-jar.properties
Compiling 1 source file to C:\Users\marog\OneDrive\Documents\NetBeansProjects \Chapter_12_TEMPLATE\Chapter_12_TEMPLATE\Chapter_1 2_TEMPLATE\build\classes
compile-single:
run-single:
Exception in Application start method
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invo ke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invo ke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl. invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchAppl icationWithArgs(LauncherImpl.java:465)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchAppl ication(LauncherImpl.java:364)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invo ke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invo ke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl. invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at java.base/sun.launcher.LauncherHelper$FXHelper.main(Launcher Helper.java:1082)
Caused by: java.lang.RuntimeException: Exception in Application start method
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchAppl ication1(LauncherImpl.java:901)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$lau nchApplication$2(LauncherImpl.java:196)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.NullPointerException: Location is required.
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:33 24)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:32 87)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:32 55)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:32 27)
at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:32 03)
at javafx.fxml/javafx.fxml.FXMLLoader.load(FXMLLoader.java:3196)
at addition.Addition.start(Addition.java:13)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$lau nchApplication1$9(LauncherImpl.java:847)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$run AndWait$12(PlatformImpl.java:484)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$run Later$10(PlatformImpl.java:457)
at java.base/java.security.AccessController.doPrivileged(Access Controller.java:399)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$run Later$11(PlatformImpl.java:456)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run( InvokeLaterDispatcher.java:96)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Nativ e Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop $3(WinApplication.java:184)
... 1 more
Exception running application addition.Addition
C:\Users\marog\OneDrive\Documents\NetBeansProjects \Chapter_12_TEMPLATE\Chapter_12_TEMPLATE\Chapter_1 2_TEMPLATE\nbproject\build-impl.xml:1367: The following error occurred while executing this line:
C:\Users\marog\OneDrive\Documents\NetBeansProjects \Chapter_12_TEMPLATE\Chapter_12_TEMPLATE\Chapter_1 2_TEMPLATE\nbproject\build-impl.xml:962: Java returned: 1
BUILD FAILED (total time: 1 second)