Request for help: ImmutableMap Exception

717 views
Skip to first unread message

Mike Frank

unread,
Mar 24, 2018, 1:24:21 PM3/24/18
to selenium-...@googlegroups.com, seleniu...@googlegroups.com
Hi,

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.

Thank you,

Mike


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());
}

}


Reply all
Reply to author
Forward
0 new messages