java.lang.NoClassDefFoundError: shared/SharedObjectFactory Can you show the exact classpath you're using? To debug this, I usually add this statement at the beginning of my code: System.out.println(System.getProperty("java.class.path")); This will show what jars are on your classpath during execution. Cheers, Ignazio

Google Groups | Diana Magdi | 2 years ago
  1. 0

    Exception in thread "main" java.lang.NoClassDefFoundError

    Google Groups | 2 years ago | Diana Magdi
    java.lang.NoClassDefFoundError: shared/SharedObjectFactory
  2. 0

    NoClassDefFoundError PrimitiveLongIterator

    GitHub | 3 years ago | alberto1el
    java.lang.NoClassDefFoundError: org/neo4j/collection/primitive/PrimitiveLongIterator
  3. 0

    adam appassembler script required but does not run

    GitHub | 1 year ago | heuermh
    java.lang.NoClassDefFoundError: org/apache/spark/Logging
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Broken example

    GitHub | 2 years ago | jaycyb
    org.mule.api.config.ConfigurationException: Error creating bean with name '_muleSimpleRegistryBootstrap' defined in URL [jar:file:/home/user/.m2/repository/org/mule/modules/mule-module-spring-config/3.3.0/mule-module-spring-config-3.3.0.jar!/default-mule-config.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/mule/api/devkit/SplashScreenAgent (org.mule.api.lifecycle.InitialisationException)
  6. 0

    Order of dependencies create an error

    GitHub | 2 years ago | roujul
    java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration#propertySourcesPlaceholderConfigurer due to internal class not found. This can happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake)
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    shared.SharedObjectFactory

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    6. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    7. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    8. java.lang.ClassLoader.defineClass1(Native Method)
    9. java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    10. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    11. java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    12. java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    13. java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    14. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    15. java.security.AccessController.doPrivileged(Native Method)
    16. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    17. java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    18. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    19. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    19 frames
  3. org.mindswap.pellet
    ATermUtils.<clinit>
    1. org.mindswap.pellet.utils.ATermUtils.<clinit>(ATermUtils.java:64)
    1 frame
  4. Pellet :: Jena
    PelletReasoner.bind
    1. org.mindswap.pellet.jena.graph.loader.DefaultGraphLoader.clear(DefaultGraphLoader.java:238)
    2. org.mindswap.pellet.jena.graph.loader.DefaultGraphLoader.<init>(DefaultGraphLoader.java:181)
    3. org.mindswap.pellet.jena.PelletReasoner.bind(PelletReasoner.java:95)
    4. org.mindswap.pellet.jena.PelletReasoner.bind(PelletReasoner.java:53)
    4 frames
  5. Apache Jena - Core
    ModelFactory.createInfModel
    1. com.hp.hpl.jena.rdf.model.ModelFactory.createInfModel(ModelFactory.java:261)
    1 frame
  6. org.mindswap.pellet
    JenaReasoner.main
    1. org.mindswap.pellet.examples.JenaReasoner.usageWithDefaultModel(JenaReasoner.java:53)
    2. org.mindswap.pellet.examples.JenaReasoner.main(JenaReasoner.java:32)
    2 frames