• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ClassNotFoundException exception

 
S. M. Sabbir
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear ranchers, i am getting some exception when running Hibernate code, my code is....


and output like


Exception in thread "main" java.lang.NoClassDefFoundError: org/dom4j/DocumentException
at Main.main(Main.java:11)
Caused by: java.lang.ClassNotFoundException: org.dom4j.DocumentException
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
... 1 more
Java Result: 1


Can some give me solution?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like you are missing dom4j from your classpath. Make sure you have all the jar files from the Hibernate distribution's lib/required directory in your classpath.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic