- Berkeley DB Reference Guide:
- Java API
- During one of the first calls to the Berkeley DB Java API, a
DbException is thrown with a "Bad file number" or "Bad file descriptor"
There are known large-file support bugs under JNI in various releases
of the JDK. Please upgrade to the latest release of the JDK, and, if
that does not solve the problem, disable big file support using the
--disable-largefile configuration option.
- How can I use native methods from a debug build of the
The Berkeley DB Java code checks a system property for the library name
before defaulting to the released library. On Windows, run as
follows (note the 'd' at the end):
% java -Dsleepycat.db.libname=libdb_java-VERSIONd
On UNIX, try:
% java -Dsleepycat.db.libname=db_java_g-VERSION
Copyright Sleepycat Software