Getting error NoClassDeffound error while exceuting selenium script(created with maven) , please help me to resolve this

0 votes
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableMap

at org.openqa.selenium.remote.service.DriverService$Builder.<init>(DriverService.java:259)

at org.openqa.selenium.chrome.ChromeDriverService$Builder.<init>(ChromeDriverService.java:101)

at org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:94)

at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:123)

at selenium.SeleniumBasics.main(SeleniumBasics.java:12)

Caused by: java.lang.ClassNotFoundException: com.google.common.collect.ImmutableMap

at java.net.URLClassLoader$1.run(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

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)

... 5 more
Feb 29 in Selenium by Sudharsan
• 120 points
190 views
Do u have the Guava libraries imported in your classpath? Ensure you have added all the dependency jar files.
Yes, i have imported Guava jar files also, I can able to see Guava jar file under maven dependencies
Hey @Sudarshan, could you please specify the version details of the tools you are using? Maybe there's a version mismatch of version in any of your jar files. Just have a look, just in case!

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer
0 votes
0 answers

Getting error while run the selenium scripts.How can i resolve this issue?

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableMap at org.openqa.selenium.remote.service.DriverService$Builder.<init>(DriverService.java:259) at ...READ MORE

Feb 12 in Selenium by kiran
• 120 points
126 views
0 votes
1 answer

How to resolve Pycharm Referenced Error with Import Selenium Web driver?

Below will help: Pycharm > Preferences > Project ...READ MORE

answered Jun 26, 2018 in Selenium by Samarpit
• 5,870 points
3,097 views
+1 vote
0 answers

Could you please help me with some selenium projects along with source code?

I am learning selenium and  I have ...READ MORE

Mar 10, 2019 in Selenium by Mark
101 views
0 votes
1 answer

Help me with the steps to write first Selenium C# test case.

Hey Wareena, you can use following steps ...READ MORE

answered Jun 10, 2019 in Selenium by Anvi
• 14,010 points
187 views