Error when running script Exception in thread main java lang NoClassDefFoundError com google common collect ImmutableMap

0 votes

Hello, I wish to do an assignment for an Edureka course but am running into the following error when running the app:

  1. Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableMap
  2.     at org.openqa.selenium.remote.service.DriverService$Builder.<init>(DriverService.java:259)
  3.     at org.openqa.selenium.chrome.ChromeDriverService$Builder.<init>(ChromeDriverService.java:101)
  4.     at org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:94)
  5.     at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:123)
  6.     at edureka.casestudies.App.setupBrowser(App.java:19)
  7.     at edureka.casestudies.App.main(App.java:46)
  8. Caused by: java.lang.ClassNotFoundException: com.google.common.collect.ImmutableMap
  9.     at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
  10.     at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
  11.     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
  12.     ... 6 more
I have followed all instructions in the assignment but I am getting an error. Can someone help me out? Note, it is due to be in Maven but we have not been shown Maven before.
Oct 1, 2020 in Selenium by Bob
• 120 points
7,372 views

1 answer to this question.

0 votes

Your query is very similar to the following. Check this out!

https://www.edureka.co/community/63759/getting-noclassdeffounderror-common-collect-immutablemap

Hope this helps!

Check out the Selenium certification program to learn more about it.

answered Oct 1, 2020 by Karan
• 19,610 points

Related Questions In Selenium

+1 vote
1 answer

getting error in testng java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableMap

A NoClassDefFoundError is thrown when the JRE can't find ...READ MORE

answered Jun 4, 2020 in Selenium by Ramesh
• 140 points
28,353 views
0 votes
0 answers
0 votes
1 answer

Exception in thread "main" java.lang.IllegalStateException

Your query is similar to the following ...READ MORE

answered Mar 17, 2020 in Selenium by Sirajul
• 59,230 points
3,415 views
0 votes
1 answer

Exception in thread "main" java.lang.IllegalStateException

Your Query is similar to https://www.edureka.co/community/5617 ...READ MORE

answered Apr 13, 2020 in Selenium by Sirajul
• 59,230 points
1,460 views
0 votes
1 answer

Exception in thread "main" java.lang.IllegalStateException: The driver executable does not exist: how to solve it?

Your query is similar to https://www.edureka.co/community/46570/illegalstateexception-executable-automation-chromedriver Check it ...READ MORE

answered Nov 6, 2020 in Selenium by Sirajul
• 59,230 points
3,308 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP