JUNIT Test class in Eclipse - java.lang.ClassNotFoundException

后端 未结 26 2018
栀梦
栀梦 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:26

    Another possible problem is a missing builder (it will prevent from your .class file from being built).

    Check that your .project file has the following lines

    
      
        org.eclipse.jdt.core.javabuilder
        
        
      
    
    
      org.eclipse.jdt.core.javanature
    
    

提交回复
热议问题