title: Error - Exception in thread "main" java.lang.NoClassDefFoundError: org/openqa/selenium/remote/Capabilities
body: <p>What *.jar files are required to run the below code in Java?</p>
  
  <pre><code>import org.openqa.selenium.firefox.FirefoxDriver;
  
  public class OpenBrowser {
      //@SuppressWarnings("unused")
      public static void main(String[] args) {
          FirefoxDriver w1=new FirefoxDriver();
          w1.get("https://google.com");
      }
  }
  </code></pre>
  
  <p>Here is the error message:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/openqa/selenium/remote/Capabilities
      at OpenBrowser.main(OpenBrowser.java:8)
  Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.remote.Capabilities
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      ... 1 more
  </code></pre>