I'm running the Selenium2Example that is shown on this page
http://seleniumhq.org/docs/03_webdriver.html
I have a single class Selenium2Example and I have the selenium-
java-2.0b3.jar on my classpath
When I run this I get the following thrown when trying to execute
WebDriver driver = new FirefoxDriver(); :
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/
common/base/Function
at Selenium2Example.main(Selenium2Example.java:11)
Caused by: java.lang.ClassNotFoundException:
com.google.common.base.Function
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
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)
Does the FirefoxDriver require that I import some
com.google.common.base.Function lib or should that already be in the
selenium-java-2.0b3.jar?