1<!--$Id: java.so,v 1.7 2005/12/01 03:18:53 bostic Exp $--> 2<!--Copyright (c) 1997,2008 Oracle. All rights reserved.--> 3<!--See the file LICENSE for redistribution information.--> 4<html> 5<head> 6<title>Berkeley DB Reference Guide: Release 4.0: Java CLASSPATH environment variable</title> 7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> 8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++"> 9</head> 10<body bgcolor=white> 11<table width="100%"><tr valign=top> 12<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></b></td> 13<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> 14</td></tr></table> 15<p align=center><b>Release 4.0: Java CLASSPATH environment variable</b></p> 16<p>The Berkeley DB Java class files are now packaged as jar files. In the 4.0 17release, the <b>CLASSPATH</b> environment variable must change to 18include at least the <b>db.jar</b> file. It can optionally include 19the <b>dbexamples.jar</b> file if you want to run the examples. For 20example, on UNIX:</p> 21<blockquote><pre>export CLASSPATH="/usr/local/BerkeleyDB.4.7/lib/db.jar:/usr/local/BerkeleyDB.4.7/lib/dbexamples.jar"</pre></blockquote> 22<p>For example, on Windows:</p> 23<blockquote><pre>set CLASSPATH="D:\db\build_windows\Release\db.jar;D:\db\build_windows\Release\dbexamples.jar"</pre></blockquote> 24<p>For more information on Java configuration, please see 25<a href="/ref/java/conf.html">Java configuration</a> and 26<a href="/ref/build_win/intro.html">Building for Windows</a>.</p> 27<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> 28</td></tr></table> 29<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 30</body> 31</html> 32