java.lang.NoClassDefFoundError

com/google/common/util/concurrent/FutureCallback


Samebug tips9

This error means there's a class missing in your classpath during runtime. You need to create a jar with all your dependencies and have it in your classpath. Check Maven Assembly Plugin and how to add your dependencies to a jar: https://goo.gl/U2zr8k

I had to build one fat jar that will include all dependencies from the other jars that i wanted to use.

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


Solutions on the web11267

Solution icon of stackoverflow
via Stack Overflow by Pavel Marian
, 11 months ago
com/google/common/util/concurrent/FutureCallback

Solution icon of web
via zhaoyanblog.com by Unknown author, 1 year ago
com/google/common/util/concurrent/FutureCallback

Solution icon of stackoverflow
via Stack Overflow by Amit Naik
, 1 year ago
com/google/common/util/concurrent/FutureCallback

Solution icon of github
via GitHub by pierluigi91
, 9 months ago
com/google/common/util/concurrent/FutureCallback

Solution icon of github
via GitHub by findchris
, 10 months ago
com/google/common/util/concurrent/RateLimiter

Solution icon of github
com/google/common/util/concurrent/ListenableFuture

Solution icon of github
com/google/common/util/concurrent/ListenableFuture

Solution icon of github
com/google/common/util/concurrent/ListenableFuture

Solution icon of github
com/google/common/util/concurrent/ListenableFuture

Solution icon of web
com/google/common/util/concurrent/ThreadFactoryBuilder

Stack trace

  • java.lang.NoClassDefFoundError: com/google/common/util/concurrent/FutureCallback at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2615) at java.lang.Class.getMethod0(Class.java:2856) at java.lang.Class.getMethod(Class.java:1668) at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486) Caused by: java.lang.ClassNotFoundException: com.google.common.util.concurrent.FutureCallback at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 6 more

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, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
7 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
1244 more bugmates