Dear Selenium experts,
I encountered the following error while executing a JPA 2.0 program, which for some reason is related to the Firefox profile:
Exception in thread "main" java.lang.NoClassDefFoundError: com / google / common / collect / Maps
at org.openqa.selenium.firefox.FirefoxProfile. (FirefoxProfile.java:56)
at org.openqa.selenium.firefox.FirefoxProfile. (FirefoxProfile.java:79)
at model.DownloadCarDetail.getMercedezDetail (model.DownloadCarDetail: 72)
at model.DownloadCarDetail.getMercedezDetail.main (model.DownloadCarDetail.getMercedezDetail.java:47)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Maps
at java.net.URLClassLoader $ 1.run (URLClassLoader.java data66)
at java.net.URLClassLoader $ 1.run (URLClassLoader.javahaps55)
at java.security.AccessController.doPrivileged (Native Method)
at java.net.URLClassLoader.findClass (URLClassLoader.java data54)
at java.lang.ClassLoader.loadClass (ClassLoader.java:424)
at sun.misc.Launcher $ AppClassLoader.loadClass (Launcher.java:308)
at java.lang.ClassLoader.loadClass (ClassLoader.javahaps57)
... 4 more
Java Result: 1
I saved Firefox to version 15, so it is supported by Selenium Webdriver, but suspects that the problem is due to the inability to read the profile directory.
Your help will be greatly appreciated.
Thank you very much,
George
source share