what am i doing wrong ?
i tried all the possible paths and made a new file for it and its still not working
10 Replies
⌛
This post has been reserved for your question.
Hey @MoonSouhayl! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
when i run
i get a lot of errors
pointing to that line
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Can you show us the errors you are getting?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
"C:\Program Files\Java\jdk-20\bin\java.exe" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.3.3\lib\idea_rt.jar=49672:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.3.3\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath C:\Users\SOUHAYL.m2\repository\org\openjfx\javafx-controls\20-ea+4\javafx-controls-20-ea+4.jar;C:\Users\SOUHAYL.m2\repository\org\openjfx\javafx-graphics\20-ea+4\javafx-graphics-20-ea+4.jar;C:\Users\SOUHAYL.m2\repository\org\openjfx\javafx-base\20-ea+4\javafx-base-20-ea+4.jar;C:\Users\SOUHAYL.m2\repository\org\openjfx\javafx-fxml\20-ea+4\javafx-fxml-20-ea+4.jar -p C:\Users\SOUHAYL.m2\repository\org\openjfx\javafx-fxml\20-ea+4\javafx-fxml-20-ea+4-win.jar;C:\Users\SOUHAYL.m2\repository\org\openjfx\javafx-controls\20-ea+4\javafx-controls-20-ea+4-win.jar;C:\Users\SOUHAYL.m2\repository\org\openjfx\javafx-graphics\20-ea+4\javafx-graphics-20-ea+4-win.jar;C:\Users\SOUHAYL.m2\repository\org\openjfx\javafx-base\20-ea+4\javafx-base-20-ea+4-win.jar;C:\Users\SOUHAYL\Desktop\SouhSweaper\target\classes -m com.example.souhsweaper/com.example.souhsweaper.Main
Exception in Application start method
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at javafx.graphics@20-ea/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:465)
at javafx.graphics@20-ea/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:364)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1081)
Caused by: java.lang.RuntimeException: Exception in Application start method
at javafx.graphics@20-ea/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:901)
at javafx.graphics@20-ea/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:196)
at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.NullPointerException
at java.base/java.util.Objects.requireNonNull(Objects.java:233)
at com.example.souhsweaper/com.example.souhsweaper.Main.start(Main.java:15)
at javafx.graphics@20-ea/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:847)
at javafx.graphics@20-ea/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:484)
at javafx.graphics@20-ea/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at javafx.graphics@20-ea/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456)
at javafx.graphics@20-ea/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at javafx.graphics@20-ea/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics@20-ea/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184)
... 1 more
Exception running application com.example.souhsweaper.Main
Process finished with exit code 1
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yep
ok
so
i fixed it
and it seems like the problem wasnt from the path
:)
my brain forgot to add ActionEvent event
Post Closed
This post has been closed by <@883785612979740692>.