1

This question is related to NoClassDefFoundError in Java: com/google/common/base/Function

I get the exact same error, but I didn't manually add jars, I used maven instead.

<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
    <version>2.48.2</version>
</dependency>

in the old post, someone used maven suggested adding another dependence of guava 15.0. I tried, but not work. Is there a way to solve it only using maven without manually add selenium-server-standalone-version.jar?

1 Answer 1

2

In addition to selenium-java, add dependency of "selenium-remote-driver"

<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-remote-driver</artifactId>
    <version>2.48.2</version>
</dependency>

<dependency>
    <groupId>com.google.guava</groupId>
    <artifactId>guava</artifactId>
    <version>15.0</version>
</dependency>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.