Timeline for Class Not Found Exception when running JUnit test
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 22, 2020 at 4:10 | comment | added | Shadyar | In my case, changing the order of Maven Dependencies from Build Path configuration did not worked for me. I changed its order from Run configuration. it worked. For those steps read my answer. | |
Aug 2, 2016 at 14:31 | comment | added | Megan | I tried all of the above and it didn't work, I also could not move the Maven Dependencies about JRE System Library but that was under the Libraries tab. Then I went to Build Path -> Order & Export -> as was able to move Maven Dependencies above JRE System library. Then I built the project and ran a Maven install, then the test ran successfully. | |
Mar 29, 2016 at 21:43 | comment | added | xorcus | I could not move Maven Managed Dependencies above JRE System Library in Eclipse Mars 2, but I could right-click on the project and go to Properties -> Builders and then move Maven Project Builder above the Java Builder and it worked for me. | |
Nov 19, 2014 at 8:25 | comment | added | nhylated | This method is described with screenshots in this post (in case the steps aren't clear from @slomek's answer above) | |
Sep 19, 2014 at 16:20 | comment | added | Roger | Thanks this solved my problem. The actual test was getting the class not found error when I tried to run it. I think this is probably a preferable first step before adding extra mvn build targets. | |
S Nov 14, 2012 at 9:23 | review | Late answers | |||
Nov 14, 2012 at 9:24 | |||||
S Nov 14, 2012 at 9:23 | review | First posts | |||
Nov 14, 2012 at 9:26 | |||||
Nov 14, 2012 at 9:05 | history | answered | slomek | CC BY-SA 3.0 |