Women in Technology

Hear us Roar



Article:
  Hibernate Your Data
Subject:   java.lang.NoClassDefFoundError: org/dom4j/Attribute?
Date:   2004-05-24 06:43:22
From:   thenrick
I have set up everything and compiled it in Eclipse and I am getting the following error.


java.lang.NoClassDefFoundError: org/dom4j/Attribute
at test.InsertProduct.main(InsertProduct.java:23)
Exception in thread "main"


I am trying to run this like we do the first time with the parameters Milk 100 1.99. The messages listed look nothing like what I am seeing. Anyone seen this?
Thanks,
Tom

Full Threads Newest First

Showing messages 1 through 9 of 9.

  • java.lang.NoClassDefFoundError: org/dom4j/Attribute?
    2004-06-02 12:34:24  sssss1 [View]

    I've seen that. About 30 minutes ago. You've got to get the jar files in hibernate/lib onto your classpath. There are a million of them. The hibernate docs have a list of which are really necessary, but you're missing at least the dom4j jar.

    Good luck,
    Scott
    • java.lang.NoClassDefFoundError: org/dom4j/Attribute?
      2004-07-30 11:13:52  regis2004 [View]

      I get the same error too? How did you resolve it?

      All the jar files under <my-hibernate-dir>/lib are in the classpath. Am i missing something here...

      Thanks,
      • java.lang.NoClassDefFoundError: org/dom4j/Attribute?
        2004-08-06 13:04:54  hiber [View]

        Hello There,

        Have you resolved this issue yet? I got the same error message when running the program. I DO have dom4j-1.4.jar file in hibernate.2.1\lib directory. Could you be able to help me identify this issue?

        Thanks in advance!

        tom
        • java.lang.NoClassDefFoundError: org/dom4j/Attribute?
          2004-08-24 20:53:17  DeepakAdlakha [View]

          I got the same error and when i add dom4j.jar in classpath.It error got resolved.

          Regards,

          Deepak
          • java.lang.NoClassDefFoundError: org/dom4j/Attribute?
            2005-08-21 02:18:21  yhjxse [View]

            though i add the dom4j-1.4.jar to class-path ,it still wrong:java.lang.NoClassDefFoundError: org/dom4j/Attribute

            who can help me,thank you,

            my msn is:yhjxse@mail.china.com
        • java.lang.NoClassDefFoundError: org/dom4j/Attribute?
          2004-08-24 20:53:29  DeepakAdlakha [View]

          I got the same error and when i add dom4j.jar in classpath.This error got resolved.

          Regards,

          Deepak
    • java.lang.NoClassDefFoundError: org/dom4j/Attribute?
      2005-01-27 04:56:23  saM [View]

      hi

      even after setting the class path of dom4j am still getting the error "classnotfound - org/dom4j/Attribute"

      Can sombody please help me in solving the same

      Thanks
      Sameer
  • java.lang.NoClassDefFoundError: org/dom4j/Attribute?
    2004-08-06 12:03:50  hiber [View]

    Could anybody give any hints on this issues. I defintely have all the hibernate's jar files in the lib directory, and still get this error.

    Thanks a lot!
    • java.lang.NoClassDefFoundError: org/dom4j/Attribute?
      2004-10-31 09:03:54  Raja_Chowdary [View]

      I also got the same Error, If any one Resolve the problem, Pls let me know...how to resolve..

      This is VEry Urgent for me !!!

      rajagopal.y@blr.pstsi.com

      Regds
      Rajagopal