java.lang.NoClassDefFoundError: com/couchbase/client/CouchbaseClient


Samebug tips

You need to add httpcore to your dependencies. Try adding version 4.3 or further.


6 months ago
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.


9 months ago
Expert tip

Solutions on the web

Solution icon of web
com/couchbase/client/CouchbaseClient

Solution icon of github
com/couchbase/client/CouchbaseClient

Stack trace

java.lang.NoClassDefFoundError: com/couchbase/client/CouchbaseClient
	at com.adxpose.test.CouchbaseClientTest.main(CouchbaseClientTest.java:22)
Caused by: java.lang.ClassNotFoundException: com.couchbase.client.CouchbaseClient
	at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	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

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2406 more bugmates