Class Not Found Exception when running JUnit test

前端 未结 25 791
夕颜
夕颜 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:12

    For me I had to put the project x/src/test/java/ at the bottom of the "order and export" in the "java build path"

提交回复
热议问题