Class Not Found Exception when running JUnit test

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

    It can also be due to "[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?"

提交回复
热议问题