Other JDBM Example Code

Help
2004-01-27
2004-02-01
  • Where can I find other example code besides FruitBasket and FamousPeople? 

    My project needs to have a hashtable and a BTree.  I put together some code, but the insert into the BTree fails (IOException).  I don't think I understand the jdbm packages enough to ask specific questions.

    Thanks,

    Steven Waldren

     
    • Alex Boisvert
      Alex Boisvert
      2004-01-27

      I don't really have other simple code snippets to show but if you want send more details about your code and exception, I'll try my best to help.

      alex

       
      • Thanks.  I found the problem and it was not in the way I was using the jdbm package. 

        I did try to make a new Class called myStringComparator.  I first tried to extend StringComparator but it is a final class. Then I tried to cut and paste the code into myStringComparator.java and then modify the implementation of the compareTo method (to ignore case).  I got an exception which gave me "...serialVersionID.....exception". 

        Do I need to change the serialVesionID value in my new Class?

        Thanks,
        Steven Waldren