Krishnan Mahadevan
2018-03-24 02:45:59 UTC
You essentially have a classpath problem. You havenât told us the following:
What version of selenium are you working with?
How are you managing your classpath? Do you use any build tools [gradle/maven/ant]? If yes, what is it. Pls show us your build file [ build.gradle/pom.xml/build.xml ]
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
Reply-To: <selenium-***@googlegroups.com>
Date: Saturday, March 24, 2018 at 2:10 AM
To: <selenium-***@googlegroups.com>, <selenium-***@googlegroups.com>
Subject: [selenium-users] Re: AllInOneJava
Is there a fix for this problem?
On Fri, Mar 23, 2018 at 8:18 AM, Michael Frank <***@verizondigitalmedia.com> wrote:
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();
driver.get("https://www.joecolantonio.com/HpSupport.html");
Assert.assertEquals("Joe's HP Support Matrix Tool for QTP, LoadRunner, "
+ "Service Test and quality Center", driver.getTitle());
}
}
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAG-WgUwAHQ1p_XNvtpzBDhHCQ-EhGt18s%2BJYHNEwQxHcZaEUtw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
What version of selenium are you working with?
How are you managing your classpath? Do you use any build tools [gradle/maven/ant]? If yes, what is it. Pls show us your build file [ build.gradle/pom.xml/build.xml ]
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
Reply-To: <selenium-***@googlegroups.com>
Date: Saturday, March 24, 2018 at 2:10 AM
To: <selenium-***@googlegroups.com>, <selenium-***@googlegroups.com>
Subject: [selenium-users] Re: AllInOneJava
Is there a fix for this problem?
On Fri, Mar 23, 2018 at 8:18 AM, Michael Frank <***@verizondigitalmedia.com> wrote:
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();
driver.get("https://www.joecolantonio.com/HpSupport.html");
Assert.assertEquals("Joe's HP Support Matrix Tool for QTP, LoadRunner, "
+ "Service Test and quality Center", driver.getTitle());
}
}
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAG-WgUwAHQ1p_XNvtpzBDhHCQ-EhGt18s%2BJYHNEwQxHcZaEUtw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-developers+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/964341A0-2FCC-42ED-BDBB-6F55C240DC61%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-developers+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/964341A0-2FCC-42ED-BDBB-6F55C240DC61%40gmail.com.
For more options, visit https://groups.google.com/d/optout.