Re: [selenium-users] Re: AllInOneJava

660 views
Skip to first unread message

Krishnan Mahadevan

unread,
Mar 23, 2018, 10:46:09 PM3/23/18
to seleniu...@googlegroups.com, selenium-...@googlegroups.com

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: <seleniu...@googlegroups.com>
Date: Saturday, March 24, 2018 at 2:10 AM
To: <selenium-...@googlegroups.com>, <seleniu...@googlegroups.com>
Subject: [selenium-users] Re: AllInOneJava

 

 

On Fri, Mar 23, 2018 at 8:18 AM, Michael Frank <michae...@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();

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-user...@googlegroups.com.
To post to this group, send email to
seleniu...@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.

Mike Frank

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

Mike Frank

unread,
Mar 25, 2018, 7:42:33 PM3/25/18
to selenium-...@googlegroups.com
All set. Thank you for your advice.

On Fri, Mar 23, 2018 at 10:45 PM, Krishnan Mahadevan <krishnan.ma...@gmail.com> 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/


Date: Saturday, March 24, 2018 at 2:10 AM

To: <selenium-developers@googlegroups.com>, <selenium-users@googlegroups.com>
Subject: [selenium-users] Re: AllInOneJava

To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to
selenium-users@googlegroups.com.


To view this discussion on the web visit

--
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+unsub...@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.
Reply all
Reply to author
Forward
0 new messages