Class Not Found Exception when running JUnit test

前端 未结 25 880
夕颜
夕颜 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 project that does not use maven : This worked for me https://ihategeek.wordpress.com/2012/04/18/eclipse-junit-test-class-not-found/

    Adding the jre and project src at the bottom in Order and exports in build path

提交回复
热议问题