Archived

This forum has been archived. Please start a new discussion on GitHub.

IceJ regression test failed!

I have recompiled IceJ and run the regression test. but it failed in some tests:

=================================================
iceuser localhost%pwd
/home/iceuser/work/products/opensource/IceJ-2.0.0/test/Freeze/dbmap

iceuser localhost%echo $CLASSPATH
/usr/local/BerkeleyDB.4.2/lib

iceuser localhost%ls $CLASSPATH/*.jar
/usr/local/BerkeleyDB.4.2/lib/db.jar

iceuser localhost%python run.py
starting client... ok
Exception in thread "main" java.lang.NoClassDefFoundError: com/sleepycat/db/DbEnv
at Freeze.Util.createConnection(Util.java:33)
at Client.run(Client.java:201)
at Client.main(Client.java:585)


Traceback (most recent call last):
File "run.py", line 36, in ?
TestUtil.printOutputFromPipe(clientPipe)
File "../../../config/TestUtil.py", line 115, in printOutputFromPipe
c = pipe.read(1)
KeyboardInterrupt

iceuser localhost%

=================================================

It seems that it is relerant to Berkeley DB. But i can not figure out what's the problem! Thank you for your help!

Comments

  • Your CLASSPATH must include the .jar file, not the directory that contains the .jar file. For example:

    CLASSPATH=/usr/local/BerkeleyDB.4.2/lib/db.jar
  • Thank you! It's Ok now!