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 in Selenium by Bob
• 120 points
72 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!
answered Oct 1 by Karan
• 18,300 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 3 in Selenium by Ramesh
• 140 points
4,331 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 in Selenium by Sirajul
• 58,130 points
934 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 in Selenium by Sirajul
• 58,130 points
192 views
+1 vote
1 answer

How can I automate the process of adding iPhone to cart in Flipkart using Selenium(java),Page Object Model and TestNG? Also validate if product is added and available in cart?

Hey check this https://www.edureka.co/community/47160/automate-purchase-adding-book-cart-flipkart-using-selenium? It deals with a similar ...READ MORE

answered Jan 13 in Selenium by Karan
• 18,300 points
2,709 views