Timeline for Class Not Found Exception when running JUnit test
Current License: CC BY-SA 3.0
39 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 9 at 4:17 | answer | added | Cheese-Cracker | timeline score: 0 | |
Apr 25, 2023 at 12:41 | comment | added | David Balažic |
Judging from other answers (solved by clean/rebuild, restarting Eclipse, making some dummy change, delete the .metadata folder, change order of classpath items, restoring defaults) and my own experience, this is some kind of race condition bug in Eclipse, even in 2023. In my case it could not find a resource file: java.io.FileNotFoundException: class path resource [foo/appStuff.xml] cannot be opened because it does not exist Then after fiddling around it suddenly started to work. With same settings as before.
|
|
Nov 26, 2020 at 13:57 | answer | added | fayabobo | timeline score: 1 | |
Sep 22, 2020 at 4:02 | answer | added | Shadyar | timeline score: 2 | |
Dec 23, 2019 at 11:59 | answer | added | Ishan Liyanage | timeline score: 0 | |
Oct 11, 2019 at 18:57 | answer | added | Groot | timeline score: 0 | |
Sep 30, 2019 at 19:47 | answer | added | Azianese | timeline score: 13 | |
Aug 12, 2019 at 22:10 | answer | added | Yao Li | timeline score: 2 | |
Jun 27, 2019 at 6:51 | answer | added | Lorenzo Lerate | timeline score: -1 | |
Apr 16, 2019 at 10:48 | answer | added | Agniva Dutta | timeline score: -1 | |
Jan 11, 2019 at 20:09 | answer | added | Philip Rego | timeline score: 1 | |
May 18, 2018 at 9:50 | answer | added | David Obber | timeline score: 0 | |
Sep 18, 2017 at 21:15 | answer | added | William | timeline score: 0 | |
S Jul 7, 2017 at 12:42 | history | suggested | Ben |
This is definitely also eclipse dependent, no?
|
|
Jul 7, 2017 at 10:07 | answer | added | Ben | timeline score: -1 | |
Jul 7, 2017 at 10:03 | review | Suggested edits | |||
S Jul 7, 2017 at 12:42 | |||||
May 4, 2017 at 14:32 | answer | added | Blake Neal | timeline score: 0 | |
Aug 25, 2016 at 13:13 | history | protected | CommunityBot | ||
Jun 1, 2016 at 13:37 | answer | added | Roman Romaniuk | timeline score: 3 | |
Mar 29, 2016 at 21:45 | comment | added | xorcus | In my case running tests using Maven worked, but if I right-click on a test class and choose Run As -> JUnit Test, it reported ClassNotFoundException. I fixed it by right-clicking on the project and going to Properties -> Builders and then moving Maven Project Builder above the Java Builder | |
Mar 9, 2016 at 9:13 | history | edited | Sergey Vyacheslavovich Brunov | CC BY-SA 3.0 |
Improved formatting.
|
Mar 4, 2016 at 6:57 | answer | added | johanwannheden | timeline score: 19 | |
Dec 11, 2015 at 1:39 | review | Close votes | |||
Dec 15, 2015 at 0:03 | |||||
Dec 11, 2015 at 1:22 | comment | added | Amos M. Carpenter | Possible duplicate of Eclipse - java.lang.ClassNotFoundException | |
Oct 6, 2015 at 15:47 | answer | added | ITisha | timeline score: 5 | |
Sep 28, 2015 at 7:40 | answer | added | Berit Larsen | timeline score: 15 | |
Apr 9, 2015 at 11:56 | answer | added | Toumi | timeline score: 0 | |
Mar 3, 2015 at 10:10 | answer | added | Jake Graham Arnold | timeline score: 0 | |
Nov 21, 2014 at 13:34 | answer | added | nhylated | timeline score: 33 | |
Aug 22, 2014 at 9:42 | answer | added | Sathya | timeline score: -6 | |
Jul 31, 2014 at 7:11 | answer | added | Nayan | timeline score: 1 | |
Apr 10, 2014 at 7:29 | vote | accept | quarks | ||
Apr 8, 2014 at 8:20 | answer | added | user3222211 | timeline score: 1 | |
Jul 21, 2013 at 2:58 | answer | added | Newtrino | timeline score: 151 | |
Nov 14, 2012 at 9:05 | answer | added | slomek | timeline score: 122 | |
Jul 10, 2012 at 8:46 | comment | added | Doszi89 | are you testing one class or the whole project? | |
Jul 8, 2012 at 12:22 | comment | added | vikas | Can you please check if com.myproject.server.MyTest is there in bin folder? I mean if it is not compiled due to compile or build path error you will get this error. | |
Jul 8, 2012 at 6:47 | comment | added | Jigar Joshi |
try running mvn clean test once it will compile all the test classes
|
|
Jul 8, 2012 at 6:06 | history | asked | quarks | CC BY-SA 3.0 |