title: Selenium Webdriver Example issue
body: <p>I'm trying to follow along with the examples found on <a href="https://code.google.com/p/selenium/wiki/GettingStarted" rel="nofollow noreferrer">https://code.google.com/p/selenium/wiki/GettingStarted</a> but I'm running into an issue with the package <code>org.openqa.selenium.example</code> being "incorrect". The rest of the code seems to be ok with the exception of the <code>public class Example</code> also having a red dot saying it needs to be declared, but I figured this is because the above package is having issues. </p>
  
  <p>When I run the code, this is the out put:</p>
  
  <pre><code>Error: Could not find or load main class test.Test
  /Users/me/Library/Caches/NetBeans/8.1/executor-snippets/run.xml:53: Java returned: 1
  BUILD FAILED (total time: 3 seconds) 
  </code></pre>
  
  <p>I know there is a similar thread found here :<a href="https://stackoverflow.com/questions/10057163/cant-run-java-example-for-selenium-webdriver">Can&#39;t run Java example for Selenium / WebDriver</a>, but with this being my first go at using both Java and Selenium, I'm still having a hard time trouble shooting this issue. In case you don't want to follow the link to the example, here is my code:</p>
  
  <pre><code>/*
   * To change this license header, choose License Headers in Project Properties.
   * To change this template file, choose Tools | Templates
   * and open the template in the editor.
   */
  package org.openqa.selenium.example;
  
  import org.openqa.selenium.By;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.WebElement;
  import org.openqa.selenium.htmlunit.HtmlUnitDriver;
  
  public class Example  {
      public static void main(String[] args) {
          // Create a new instance of the html unit driver
          // Notice that the remainder of the code relies on the interface, 
          // not the implementation.
          WebDriver driver = new HtmlUnitDriver();
  
          // 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());
  
          driver.quit();
      }
  }
  </code></pre>
  
  <p>EDIT:</p>
  
  <p><a href="https://i.stack.imgur.com/mScoR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mScoR.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/rQgCg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rQgCg.png" alt="enter image description here"></a></p>