Java classdefnotfounderror
<p>When i executing the following code </p>

<pre><code>public static void main(String[] args) {

    try{
    FirefoxDriver driver=new FirefoxDriver();
    driver.get("http:www.yahoo.com");}
    catch(NoClassDefFoundError ex){
        System.out.println("error:"+ex.getStackTrace());
    }
 }
</code></pre>

<p>Am facing the following error: </p>

<blockquote>
  <p>error:[Ljava.lang.StackTraceElement;@80f4cb</p>
  
  <p>Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function</p>
</blockquote>

<p>Could someone help me to find the solution or reason for this?</p>
