java.lang.NoClassDefFoundError

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Look if your classpath is correct, and check if the versions of your libraries match the version you described in your pom.xml

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

  • Spring IDE M2 - Quartz is on the project classpath, and I'm defining quartz beans in my spring app context. Problem also seen with Log4J (which is also on classpath). {code} !ENTRY org.springframework.ide.eclipse.beans.core 4 0 2007-01-26 18:27:42.793 !MESSAGE Internal Error !STACK 0 java.lang.NoClassDefFoundError: org/quartz/JobDetail at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:160) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:498) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:468) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:427) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:410) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:188) at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:334) at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:37) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:383) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83) at java.lang.ClassLoader.loadClass(Unknown Source) at org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:117) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.springframework.ide.eclipse.aop.core.parser.BeanAspectDefinitionParser.parseAnnotationAspects(BeanAspectDefinitionParser.java:126) at org.springframework.ide.eclipse.aop.core.parser.BeanAspectDefinitionParser.buildAspectDefinitions(BeanAspectDefinitionParser.java:92) at org.springframework.ide.eclipse.aop.core.parser.BeanAopModelBuilder.buildAopReferencesFromFile(BeanAopModelBuilder.java:132) at org.springframework.ide.eclipse.aop.core.parser.BeanAopModelBuilder.buildAopModel(BeanAopModelBuilder.java:84) at org.springframework.ide.eclipse.aop.core.parser.BeanAopModelBuilder####BuildJob.run(BeanAopModelBuilder.java:283) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58) {code}
    via by Imported,
  • Spring IDE M2 - Quartz is on the project classpath, and I'm defining quartz beans in my spring app context. Problem also seen with Log4J (which is also on classpath). {code} !ENTRY org.springframework.ide.eclipse.beans.core 4 0 2007-01-26 18:27:42.793 !MESSAGE Internal Error !STACK 0 java.lang.NoClassDefFoundError: org/quartz/JobDetail at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:160) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:498) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:468) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:427) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:410) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:188) at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:334) at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:37) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:383) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83) at java.lang.ClassLoader.loadClass(Unknown Source) at org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:117) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.springframework.ide.eclipse.aop.core.parser.BeanAspectDefinitionParser.parseAnnotationAspects(BeanAspectDefinitionParser.java:126) at org.springframework.ide.eclipse.aop.core.parser.BeanAspectDefinitionParser.buildAspectDefinitions(BeanAspectDefinitionParser.java:92) at org.springframework.ide.eclipse.aop.core.parser.BeanAopModelBuilder.buildAopReferencesFromFile(BeanAopModelBuilder.java:132) at org.springframework.ide.eclipse.aop.core.parser.BeanAopModelBuilder.buildAopModel(BeanAopModelBuilder.java:84) at org.springframework.ide.eclipse.aop.core.parser.BeanAopModelBuilder####BuildJob.run(BeanAopModelBuilder.java:283) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58) {code}
    via by Imported,
  • Apache Portals Bridges issue with WP 6.1
    via by Rob.Chil...@gmail.com,
  • Mind the Gap: Creating an OSGi bundle
    via by Unknown author,
  • EasyEclipse | Distributions | EasyEclipse for PHP
    via by Unknown author,
  • Desinstalar / instalar Eclipse | Ubuntu-es
    via by Unknown author,
    • java.lang.NoClassDefFoundError: org/quartz/JobDetail at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:160) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:498) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:468) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:427) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:410) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:188) at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:334) at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:37) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:383) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83) at java.lang.ClassLoader.loadClass(Unknown Source) at org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:117) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.springframework.ide.eclipse.aop.core.parser.BeanAspectDefinitionParser.parseAnnotationAspects(BeanAspectDefinitionParser.java:126) at org.springframework.ide.eclipse.aop.core.parser.BeanAspectDefinitionParser.buildAspectDefinitions(BeanAspectDefinitionParser.java:92) at org.springframework.ide.eclipse.aop.core.parser.BeanAopModelBuilder.buildAopReferencesFromFile(BeanAopModelBuilder.java:132) at org.springframework.ide.eclipse.aop.core.parser.BeanAopModelBuilder.buildAopModel(BeanAopModelBuilder.java:84)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    GhostsGhosts
    12 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    davidvanlaatumdavidvanlaatum
    1 times, last one,
    139 more bugmates