2
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
3
<!--All rights reserved.-->
4
<!--See the file LICENSE for redistribution information.-->
7
<title>Berkeley DB Reference Guide: Java FAQ</title>
8
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
9
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
12
<a name="2"><!--meow--></a><a name="3"><!--meow--></a>
13
<table width="100%"><tr valign=top>
14
<td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Java API</dl></h3></td>
15
<td align=right><a href="../../ref/java/program.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/perl/intro.html"><img src="../../images/next.gif" alt="Next"></a>
18
<h1 align=center>Java FAQ</h1>
20
<p><li><b>During one of the first calls to the Berkeley DB Java API, a
21
DbException is thrown with a "Bad file number" or "Bad file descriptor"
23
<p>There are known large-file support bugs under JNI in various releases
24
of the JDK. Please upgrade to the latest release of the JDK, and, if
25
that does not solve the problem, disable big file support using the
26
--disable-largefile configuration option.
27
<p><li><b>How can I use native methods from a debug build of the
29
<p>The Berkeley DB Java code checks a system property for the library name
30
before defaulting to the released library. On Windows, run as
31
follows (note the 'd' at the end):
32
<p><blockquote><pre>% java -Dsleepycat.db.libname=libdb_java-VERSIONd</pre></blockquote>
34
<p><blockquote><pre>% java -Dsleepycat.db.libname=db_java_g-VERSION</pre></blockquote>
36
<table width="100%"><tr><td><br></td><td align=right><a href="../../ref/java/program.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../../reftoc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../../ref/perl/intro.html"><img src="../../images/next.gif" alt="Next"></a>
38
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>