<!--$Id: java.so,v 11.8 2000/12/01 18:33:56 bostic Exp $--><!--Copyright 1997, 1998, 1999, 2000 by Sleepycat Software, Inc.--><!--All rights reserved.--><html><head><title>Berkeley DB Reference Guide: Release 3.0: additional Java changes</title><metaname="description"content="Berkeley DB: An embedded database programmatic toolkit."><metaname="keywords"content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++"></head><bodybgcolor=white><table><trvalign=top><td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td><tdwidth="1%"><ahref="../../ref/upgrade.3.0/cxx.html"><imgsrc="../../images/prev.gif"alt="Prev"></a><ahref="../../ref/toc.html"><imgsrc="../../images/ref.gif"alt="Ref"></a><ahref="../../ref/upgrade.3.0/disk.html"><imgsrc="../../images/next.gif"alt="Next"></a></td></tr></table><p><h1align=center>Release 3.0: additional Java changes</h1><p>There are several additional types of exceptions thrown in the Berkeley DB 3.0Java API.<p>DbMemoryException and DbDeadlockException can be caught independently ofDbException if you want to do special handling for these kinds of errors.Since they are subclassed from DbException, a try block that catchesDbException will catch these also, so code is not required to change.The catch clause for these new exceptions should appear before the catchclause for DbException.<p>You will need to add a catch clause for java.io.FileNotFoundException,since that can be thrown by the <ahref="../../api_java/db_open.html">Db.open</a> and <ahref="../../api_java/env_open.html">DbEnv.open</a> functions.<p>There are a number of smaller changes to the API that bring the C, C++and Java APIs much closer in terms of functionality and usage. Pleaserefer to the pages for upgrading C applications for further details.<table><tr><td><br></td><tdwidth="1%"><ahref="../../ref/upgrade.3.0/cxx.html"><imgsrc="../../images/prev.gif"alt="Prev"></a><ahref="../../ref/toc.html"><imgsrc="../../images/ref.gif"alt="Ref"></a><ahref="../../ref/upgrade.3.0/disk.html"><imgsrc="../../images/next.gif"alt="Next"></a></td></tr></table><p><fontsize=1><ahref="http://www.sleepycat.com">Copyright Sleepycat Software</a></font></body></html>