title: Error while executing Selenium script in Eclipse IDE
body: <p>I am getting the below error for the below script. I have all the jar files added to the library. </p>
  
  <pre class="lang-none prettyprint-override"><code>============================================================
  Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
      WebDriver cannot be resolved to a type
      FirefoxDriver cannot be resolved to a type
  
      at webdriver/Demo.Sample.main(Sample.java:11)
  =============================================================
  </code></pre>
  
  <pre class="lang-java prettyprint-override"><code>package Demo;
  
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.firefox.FirefoxDriver;
  
  public class Sample {
  
      public static void main(String[] args) {
          // TODO Auto-generated method stub
          System.out.println("hello");
          WebDriver driver = new FirefoxDriver();
          driver.get("http://www.google.com");
      }
  }
  </code></pre>