JUNIT Test class in Eclipse - java.lang.ClassNotFoundException

后端 未结 26 2039
栀梦
栀梦 2020-12-14 13:55

I\'m trying to run my junit test (to verify that a properties file loads correctly) but I get ClassNotFoundException although the class is there and all requir

26条回答
  •  忘掉有多难
    2020-12-14 14:20

    I tried all the answers described here but none worked, but found this thread where slomek solves the problem in a very easy manner. Just go to project -> properties --> java build path. Then move Junit to the top by hitting the up bottom to the right. Then everything compiles just fine.

提交回复
热议问题