title: NoClassDefFoundError: org/apache/http/HttpEntity in Selenium for FirefoxDriver
body: <p>I am not trying to do much here.</p>
  
  <p>I am just trying to run an example given in Selenium website, to just open Google page and enter a search string in the edit box</p>
  
  <p>But I get the following error:</p>
  
  <p>*> Exception in thread "main"</p>
  
  <blockquote>
    <p>java.lang.NoClassDefFoundError:
    org/apache/http/client/ClientProtocolException
      at
    org.openqa.selenium.ie.InternetExplorerDriver.setup(InternetExplorerDriver.java:92)
      at
    org.openqa.selenium.ie.InternetExplorerDriver.(InternetExplorerDriver.java:56)
      at
    com.testscripts.Selenium2Example.main(Selenium2Example.java:16)*</p>
  </blockquote>
  
  <p>I have no idea what this ClientProtocolException
   Class is and where to find this.</p>
  
  <p>Could any one of you please help ?</p>
  
  <p>Code Is</p>
  
  <pre><code>import org.openqa.selenium.By;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.WebElement;
  import org.openqa.selenium.firefox.FirefoxDriver;
  //import org.openqa.selenium.ie.*;
  
  public class Selenium2Example  {
      public static void main(String[] args) {
          // Create a new instance of the Firefox driver
          // Notice that the remainder of the code relies on the interface, 
          // not the implementation.
          System.setProperty("webdriver.firefox.bin", "C:\\Documents and Settings\\Vikas Kashyap\\Local Settings\\Application Data\\Mozilla Firefox\\firefox");
  
          WebDriver driver = new FirefoxDriver();
  
          //WebDriver driver = new InternetExplorerDriver();
  
          // And now use this to visit Google
          driver.get("http://www.google.com");
  
          // Find the text input element by its name
          WebElement element = driver.findElement(By.name("q"));
  
          // Enter something to search for
          element.sendKeys("Cheese!");
  
          // Now submit the form. WebDriver will find the form for us from the element
          element.submit();
  
          // Check the title of the page
          System.out.println("Page title is: " + driver.getTitle());
  
  
          //Close the browser
          driver.quit();
  
      }
  }
  </code></pre>
  
  <p>Regards,<br>
  Vikas</p>