Class Not Found Exception when running JUnit test

前端 未结 25 869
夕颜
夕颜 2020-12-07 08:32

I am getting this error when running JUnit test in Eclipse:

Class not found com.myproject.server.MyTest
java.lang.ClassNotFoundException: com.myproject.serve         


        
25条回答
  •  情话喂你
    2020-12-07 09:27

    In my case, only next steps helped me to resolve this issue:

    1. Project->properties->Run/Debug Settings.
    2. In "Launch configurations for '.....'" select classes/projects
    3. Edit -> Classpath -> "Restore Default Entries"

提交回复
热议问题