<!--$Id: java.so,v 1.7 2005/12/01 03:18:53 bostic Exp $--> <!--Copyright (c) 1997,2007 Oracle. All rights reserved.--> <!--See the file LICENSE for redistribution information.--> <html> <head> <title>Berkeley DB Reference Guide: Release 4.0: Java CLASSPATH environment variable</title> <meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> <meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++"> </head> <body bgcolor=white> <table width="100%"><tr valign=top> <td><h3><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></h3></td> <td align=right><a href="../upgrade.4.0/lock_id_free.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../upgrade.4.0/cxx.html"><img src="../../images/next.gif" alt="Next"></a> </td></tr></table> <p> <h3 align=center>Release 4.0: Java CLASSPATH environment variable</h3> <p>The Berkeley DB Java class files are now packaged as jar files. In the 4.0 release, the <b>CLASSPATH</b> environment variable must change to include at least the <b>db.jar</b> file. It can optionally include the <b>dbexamples.jar</b> file if you want to run the examples. For example, on UNIX:</p> <blockquote><pre>export CLASSPATH="/usr/local/BerkeleyDB.4.6/lib/db.jar:/usr/local/BerkeleyDB.4.6/lib/dbexamples.jar"</pre></blockquote> <p>For example, on Windows:</p> <blockquote><pre>set CLASSPATH="D:\db\build_windows\Release\db.jar;D:\db\build_windows\Release\dbexamples.jar"</pre></blockquote> <p>For more information on Java configuration, please see <a href="../../ref/java/conf.html">Java configuration</a> and <a href="../../ref/build_win/intro.html">Building for Windows</a>.</p> <table width="100%"><tr><td><br></td><td align=right><a href="../upgrade.4.0/lock_id_free.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../upgrade.4.0/cxx.html"><img src="../../images/next.gif" alt="Next"></a> </td></tr></table> <p><font size=1>Copyright (c) 1996,2007 Oracle. All rights reserved.</font> </body> </html>