Print

Print


Ah!  I think I see it now.

You're missing an import line in Tool.java.  add this to the list of import statements in Tool.java:

     import com.sleepycat.db.*

Then do

     javac Tool.java

You're pulling in the dbxml stull but not the db.* stuff.  bet that works.

-Peter

-----Original Message-----
From: Eric Lease Morgan <[log in to unmask]>
Sent: Jul 5, 2004 7:23 PM
To: [log in to unmask]
Subject: Re: [CODE4LIB] compiling a BerkeleyDBXML  Java program

On Jul 5, 2004, at 1:24 PM, Peter Schlumpf wrote:

> Sounds like you might need to set the CLASSPATH environment variable
> to include the com.sleepycat.dbxml.* libraries....

Thank you for the prompt replies.

Everybody says I need to include the BerkeleyDBXML libraries (jar
files) in my CLASSPATH, but alas I have already done this:

$ echo $CLASSPATH
.:/usr/local/BerkeleyDB.4.2/lib/db.jar:/usr/local/BerkeleyDBXML.1.2/
lib/dbxml.jar

And the .jar files exist:

$ ls -l /usr/local/BerkeleyDB.4.2/lib/db.jar
-r--r--r--  1 root root 160654 Jul  5 11:52
/usr/local/BerkeleyDB.4.2/lib/db.jar
$ ls -l /usr/local/BerkeleyDBXML.1.2/lib/dbxml.jar
-r--r--r--  1 root root 18728 Jul  5 11:56
/usr/local/BerkeleyDBXML.1.2/lib/dbxml.jar

What else should I try? The following command returns errors:

$ javac Tool.java
Tool.java:11: cannot resolve symbol
symbol  : class Database
location: class Tool
     Database db = new Database(database);
     ^
Tool.java:11: cannot resolve symbol
symbol  : class Database
location: class Tool
     Database db = new Database(database);

--
Eric Lease Morgan