Re: [selenium-users] Re: AllInOneJava

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [selenium-users] Re: AllInOneJava

⇜Krishnan Mahadevan⇝

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: <[hidden email]>
Date: Saturday, March 24, 2018 at 2:10 AM
To: <[hidden email]>, <[hidden email]>
Subject: [selenium-users] Re: AllInOneJava

 

 

On Fri, Mar 23, 2018 at 8:18 AM, Michael Frank <[hidden email]> 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();

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
[hidden email].
To post to this group, send email to
[hidden email].
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: [selenium-users] Re: AllInOneJava

Mike Frank
All set. Thank you for your advice.

On Fri, Mar 23, 2018 at 10:45 PM, Krishnan Mahadevan <[hidden email]> wrote:

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: <[hidden email]>
Date: Saturday, March 24, 2018 at 2:10 AM
To: <[hidden email]>, <[hidden email]>
Subject: [selenium-users] Re: AllInOneJava

 

 

On Fri, Mar 23, 2018 at 8:18 AM, Michael Frank <[hidden email]> 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();

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
[hidden email].
To post to this group, send email to
[hidden email].
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 [hidden email].
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/CAG-WgUz%3DMHmhi6hQNrbWZWgsD0HxD3ig6UVBkKks_g7-4_fivA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.