java.lang.NoClassDefFoundError

com/google/ common/cache/LoadingCache


Samebug tips8

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

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


Solutions on the web9712

Solution icon of googlegroups
via Google Groups by machi...@163.com, 2 months ago
com/google/ > common/cache/LoadingCache

Solution icon of github
via GitHub by 0x3333
, 1 year ago
com/google/common/cache/CacheLoader

Solution icon of googlegroups
via Google Groups by Koset Surakomol, 1 month ago
com/google/common/cache/CacheLoader

Solution icon of atlassian
via Atlassian JIRA by Renjith [Atlassian], 1 year ago
com/google/common/cache/CacheLoader

Solution icon of atlassian
via Atlassian JIRA by Renjith [Atlassian], 1 year ago
com/google/common/cache/CacheLoader

Solution icon of stackoverflow
com/google/common/cache/CacheLoader

Solution icon of stackoverflow
via Stack Overflow by bukashka101
, 11 months ago
com/google/common/cache/RemovalListener

Solution icon of web
com/google/common/cache/CacheBuilder

Solution icon of web
via blogspot.com by Unknown author, 1 year ago
com/google/common/cache/CacheLoader

Solution icon of github
via GitHub by cmaeder
, 1 year ago
com/google/common/cache/CacheLoader

Stack trace

  • java.lang.NoClassDefFoundError: com/google/ common/cache/LoadingCache at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.getDeclaredMethods(Unknown Source) at com.google.inject.internal.ProviderMethodsModule.getProviderMethods(ProviderMethodsModule.java:81) at com.google.inject.internal.ProviderMethodsModule.configure(ProviderMethodsModule.java:73) at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223) at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:232) at com.google.inject.spi.Elements.getElements(Elements.java:101) at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133) at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103) at com.google.inject.Guice.createInjector(Guice.java:95) at com.google.inject.Guice.createInjector(Guice.java:72) at org.jclouds.rest.RestContextBuilder.buildInjector(RestContextBuilder.java:186) at org.jclouds.compute.ComputeServiceContextBuilder.buildInjector(ComputeServiceContextBuilder.java:52) at org.jclouds.compute.ComputeServiceContextBuilder.buildComputeServiceContext(ComputeServiceContextBuilder.java:65) at org.jclouds.compute.ComputeServiceContextFactory.buildContextUnwrappingExceptions(ComputeServiceContextFactory.java:70) at org.jclouds.compute.ComputeServiceContextFactory.createContext(ComputeServiceContextFactory.java:121) at com.syncsort.NovaTest.main(NovaTest.java:39) Caused by: java.lang.ClassNotFoundException: com.google.common.cache.LoadingCache at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 18 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, 1 year ago
12 times, 2 weeks ago
Once, 2 weeks ago
364 times, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
1243 more bugmates