Hello, I wish to do an assignment for an Edureka course but am running into the following error when running the app:
- 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 edureka.casestudies.App.setupBrowser(App.java:19)
- at edureka.casestudies.App.main(App.java:46)
- Caused by: java.lang.ClassNotFoundException: com.google.common.collect.ImmutableMap
- at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
- at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
- at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
- ... 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.