Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

java.lang.NoClassDefFoundError on runtime

3PO
2007-01-29
2013-04-18
  • 3PO
    3PO
    2007-01-29

    I downloaded chaidb package for my project that needed to have a small foot-print persistent layer. I have chaidb.jar in my classpath and my code compiles fine. But when I test my application I get the following exception:

    Exception in thread "main" java.lang.NoClassDefFoundError: com/coyotegulch/jisp/
    ObjectIndex
            at org.chaidb.db.index.btree.bufmgr.PageBufferManager.initIdStorage(Page
    BufferManager.java:231)
            at org.chaidb.db.index.btree.bufmgr.PageBufferManager.initIdStorage(Page
    BufferManager.java:249)
            at org.chaidb.db.index.btree.bufmgr.PageBufferManager.retrieveBTreeFileN
    ame(PageBufferManager.java:376)
            at org.chaidb.db.index.btree.bufmgr.PageBufferManager.open(PageBufferMan
    ager.java:458)
            at org.chaidb.db.index.btree.AbstractBTree.open(AbstractBTree.java:455)
            at org.chaidb.db.index.btree.AbstractBTree.open(AbstractBTree.java:437)
            at org.chaidb.db.api.Database.openBTree(Database.java:90)
            at TestChaiDB.testWithoutTransaction(TestChaiDB.java:26)
            at TestChaiDB.main(TestChaiDB.java:15)

    Can you please tell me what I am missing?

     
    • chaidb-admin
      chaidb-admin
      2007-01-29

      It seems you missed jisp.jar file in the classpath. The following jar files should be in your classpath to run the application utilizing ChaiDB: log4j-1.2.13.jar, xercesImpl.jar, jisp.jar. These jar files can be found under lib\ directory of downloaded package.