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

  1. ,
    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.

  2. ,
    Expert tip

    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.

Solutions on the web

via Stack Overflow by Alexander the Mysterious
, 1 year ago
Cannot load configuration class: plugin.MainCon fig
via Stack Overflow by Kurtiss
, 2 years ago
Cannot load configuration class: com.tutorialspoint.HelloWorldConfig
via Google Groups by Andrew Holland, 1 year ago
Cannot load configuration class: ***.service.constructionsite.ConstructionSiteApplication
via GitHub by spencergibb
, 1 year ago
Cannot load configuration class: org.springframework.boot.autoconfigure.web.HttpMessageConvertersAutoConfiguration
via GitHub by sharuzzaman
, 7 months ago
via Stack Overflow by Uday C.
, 5 days ago
java.lang.ClassNotFoundException: plugin.MainConfig	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)	at org.springframework.util.ClassUtils.forName(ClassUtils.java:250)	at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:394)	at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:408)	at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:266)	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:284)	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:130)	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:681)	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:523)	at org.springframework.context.annotation.AnnotationConfigApplicationContext.(AnnotationConfigApplicationContext.java:84)	at plugin.RulerSystem.onLoad(RulerSystem.java:15)	at org.bukkit.craftbukkit.v1_10_R1.CraftServer.loadPlugins(CraftServer.java:302)	at net.minecraft.server.v1_10_R1.DedicatedServer.init(DedicatedServer.java:202)	at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:539)	at java.lang.Thread.run(Unknown Source)