java.lang.NoClassDefFoundError: org/apache/http/client/HttpClient

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Expert tip

A few things cause this exception:
1) Check if you have all jars and if they're in the correct path.
2) Your classpath might be broken, you can define it in the command line with java -cp yourClassPath or at your IDE if you're using one.


you can change your scala version to 2.11.11

Solutions on the web

via Stack Overflow by Pimenta
, 10 months ago
java.lang.ClassNotFoundException: org.apache.http.client.HttpClient
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at com.github.tomakehurst.wiremock.core.WireMockApp.buildStubRequestHandler(
at com.github.tomakehurst.wiremock.WireMockServer.(
at com.github.tomakehurst.wiremock.junit.WireMockRule.(
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(
at sun.reflect.ReflectionFactory.newFieldAccessor(
at java.lang.reflect.Field.acquireFieldAccessor(
at java.lang.reflect.Field.getFieldAccessor(
at java.lang.reflect.Field.get(
at org.junit.runners.model.FrameworkField.get(
at org.junit.runners.model.TestClass.getAnnotatedFieldValues(
at org.junit.runners.ParentRunner.classRules(
at org.junit.runners.ParentRunner.withClassRules(
at org.junit.runners.ParentRunner.classBlock(
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(

Users with the same issue

1436 times, 1 day ago
9 times, 2 days ago
Once, 3 days ago
3 times, 4 days ago
Once, 5 days ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.