I am trying to run a java class in eclipse using junit
, i am getting the following error
java.lang.NoClassDefFoundError: com/google/common/base/Function
please let me know to solve this issue
I am trying to run a java class in eclipse using junit
, i am getting the following error
java.lang.NoClassDefFoundError: com/google/common/base/Function
please let me know to solve this issue
Most probably you did not add the required jar file in your classpath. The exception is thrown because JRE can't find the class. Please make sure you add all the required jar files in your classpath.