Eclipse JUnit - possible causes of seeing “initializationError” in Eclipse window

后端 未结 25 1323
情深已故
情深已故 2020-12-13 12:35

I know this question is pretty general but I haven\'t found any hints on why this error may show up. What are possible causes of seeing initalizationError in Eclips

25条回答
  •  情深已故
    2020-12-13 12:59

    In my case I have changed project name in pom.xml so the new target directory was generated and junit was searching classes in old directory. You need to change directory for JUnit also in Eclipse

    Properties -> Java Build Path -> Source (Default output folder)

    And also check because some of source folders listed in the same window may have former directory name. You need to change them too.

提交回复
热议问题