When I execute the following code:
public static void main(String[] args) { try { FirefoxDriver driver = new FirefoxDriver(); driver.get("http:www.yahoo.com"); } catch (NoClassDefFoundError ex) { System.out.println("error: " + ex.getStackTrace()); } }
I encountered the following error:
error: [Ljava.lang.StackTraceElement; @ 80f4cb
Exception in thread "main" java.lang.NoClassDefFoundError: com / google / common / base / Function
Can someone help me find a solution or a reason for this?
java selenium-webdriver runtime-error
vijaymsc Feb 27 '11 at 18:18 2011-02-27 18:18
source share