java.lang.NoClassDefFoundError

org/apache/http/client/methods/HttpUriRequest


Samebug tips9

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 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.

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web20861

Solution icon of stackoverflow
org/apache/http/client/methods/HttpUriRequest

Solution icon of stackoverflow
org/apache/http/client/methods/HttpUriRequest

Solution icon of web
org/apache/http/client/methods/HttpUriRequest

Solution icon of web
via intel.com by Unknown author, 10 months ago
org/apache/http/client/methods/HttpUriRequest

Solution icon of coderanch
org/apache/http/client/methods/HttpUriRequest

Solution icon of github
org/apache/http/client/methods/HttpUriRequest

Solution icon of googlegroups
via Google Groups by Chaithika Prabudda, 1 month ago
org/apache/http/client/methods/HttpUriRequest

Solution icon of stackoverflow
via Stack Overflow by Skaros Ilias
, 11 months ago
org/apache/http/client/methods/HttpUriRequest

Solution icon of stackoverflow
via Stack Overflow by Lokesh
, 4 months ago
org/apache/http/client/methods/HttpUriRequest

Solution icon of coderanch
org/apache/http/client/methods/HttpUriRequest

Stack trace

  • java.lang.NoClassDefFoundError: org/apache/http/client/methods/HttpUriRequest at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.privateGetMethodRecursive(Class.java:3048) at java.lang.Class.getMethod0(Class.java:3018) at java.lang.Class.getMethod(Class.java:1784) at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526) Caused by: java.lang.ClassNotFoundException: org.apache.http.client.methods.HttpUriRequest at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

26 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 times, 5 days ago
4 times, 3 weeks ago
4 times, 3 weeks ago
2434 more bugmates