I am receiving the following error when I run the code below the error in Eclipse.
I have searched the Web for a resolution to this problem, but come up empty handed.
Please review the information below, and let me know if there is a resolution to this problem.
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableMap
at org.openqa.selenium.remote.service.DriverService$Builder.<init>(DriverService.java:253)
at org.openqa.selenium.firefox.GeckoDriverService$Builder.<init>(GeckoDriverService.java:113)
at org.openqa.selenium.firefox.FirefoxDriver.toExecutor(FirefoxDriver.java:154)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:98)
at executableTest.AllInOne.main(AllInOne.java:12)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.ImmutableMap
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)
... 6 more
#######################################################
package executableTest;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.junit.Assert;
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.*;
public class AllInOne {
public static void main(String[] args) {
System.setProperty("webdriver.gecko.driver","C:\\Selenium\\geckodriver-v0.20.0-win64\\geckodriver.exe");
FirefoxDriver driver = new FirefoxDriver();
Assert.assertEquals("Joe's HP Support Matrix Tool for QTP, LoadRunner, "
+ "Service Test and quality Center", driver.getTitle());
}
}