java.lang.ClassNotFoundException: org.apache.http.config.RegistryBuilder

hasan picture hasan · Jan 29, 2015 · Viewed 10.3k times · Source

HI I'm running selenium with spring and cglib.

I get this error: java.lang.ClassNotFoundException: org.apache.http.config.RegistryBuilder

but i cant find the related package any where!! anybody can help?

Thanks

Answer

dshgna picture dshgna · Mar 6, 2015

The package is included in ApacheHttpComponents httpcore.

If working with Maven, simply add the following as a dependency in your pom.xml.

<dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpcore</artifactId>
        <version>4.3.3</version>
</dependency>