i have been using eclipse, mars, neon and oxygen and i always had the same problem after some days/weeks of using its.
When i press run. It sometimes likes not to work and with no reason scream
Error: Could not find or load main class test.PingSwitchPing
and sometimes after i press run a few more times it suddenly works...
other times when i make some changes to code eclipse doesn't compile to make changes and run old code...
this time it is giving me something that it can't even replicate right now so i cant show error message, but basically the error was about not seeing class path to external libraries and to other parts of code that where in diffrent folder. While it was in phase on loading javafx application.
Why is it so unstable ? it is really piss me off becouse sometimes i am loosing hours to fight with it...
Sometimes i remove .m2 folder and redonwload everyting and it is helping. Cleaning project do nothing to this.
Sometimes restarting pc and eclipse works other times it dosen't...
I was just writing that i can't replicate main error but when i changed on line of code and run then it occurs. When i change it back nothing change. it still dosent work and dont want to work...
Exception in thread "JavaFX Application Thread" Exception in thread "main" 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 sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
Caused by: java.lang.NullPointerException
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:383)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
... 5 more
java.lang.NoClassDefFoundError: org/quartz/SchedulerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplicationWithArgs$155(LauncherImpl.java:352)
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)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.quartz.SchedulerException
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 11 more
It once even let me write this
scene.getStylesheets().add("My.css");
and it worked event when this file was in .../workspace
when project was in .../workspace/MavenProjectName
It is just so unrelabile...