what am i doing wrong ?

i tried all the possible paths and made a new file for it and its still not working
No description
10 Replies
JavaBot
JavaBot2y ago
This post has been reserved for your question.
Hey @MoonSouhayl! Please use /close or the Close 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
MoonSouhayl
MoonSouhaylOP2y ago
when i run i get a lot of errors pointing to that line
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
stechy1
stechy12y ago
Can you show us the errors you are getting?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
MoonSouhayl
MoonSouhaylOP2y ago
"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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
MoonSouhayl
MoonSouhaylOP2y ago
yep ok so i fixed it and it seems like the problem wasnt from the path :) my brain forgot to add ActionEvent event
JavaBot
JavaBot2y ago
Post Closed
This post has been closed by <@883785612979740692>.
Want results from more Discord servers?
Add your server