Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-20-2003
Lam Dang Lam Dang is offline
Registered User
 
 
Join Date: Feb 2003
Location: Gaithersburg, MD
Posts: 3
Angry Error "no db_java-4.1..."

Running tests in /usr/local/src/IceJ-1.0.0 on RH8.0 , I got this error:

*** running tests in ./test/Freeze/cursor:

starting client... ok
Exception in thread "main" java.lang.UnsatisfiedLinkError: no db_java-4.1 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1403)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:832)
at com.sleepycat.db.Db.load_db(Db.java:589)
at com.sleepycat.db.Db.<clinit>(Db.java:610)
at com.sleepycat.db.DbEnv.<clinit>(DbEnv.java:426)
at Freeze.DBEnvironmentI.<init>(DBEnvironmentI.java:2 43)
at Freeze.Util.initialize(Util.java:22)
at Client.main(Unknown Source)
test failed with exit status 1

I was using Sleepy Cat's db-4.1.25 because it's the only one available at their download site. (I didn't remove the db4*-4.0.14-14 RPMs that came with RH 8.0. )

Here's my CLASSPATH:

.:/usr/local/src/IceJ-1.0.0/lib/Ice.jar:/usr/local/src/db-4.1.25/build_unix/db.jar

I'd already built the C++ version of Ice-1.0.0 and run its test suite without any error.

Any advice will be appreciated.
__________________
Lam
Reply With Quote
  #2 (permalink)  
Old 02-20-2003
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 962
The Java version of BerkeleyDB is layered on the C version using JNI, therefore you must have the directory containing libdb_java-4.1.so in your LD_LIBRARY_PATH.
Reply With Quote
  #3 (permalink)  
Old 02-20-2003
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,005
Hi,

You also need to add the directory containing the berkeley db shared libraries (such as libdb_java-4.1.so) to your LD_LIBRARY_PATH.

You can download the older distributions here:

http://www.sleepycat.com/download/patchlogs.shtml

Regards, Matthew
Reply With Quote
  #4 (permalink)  
Old 02-20-2003
Lam Dang Lam Dang is offline
Registered User
 
 
Join Date: Feb 2003
Location: Gaithersburg, MD
Posts: 3
Angry

Thanks for your quick responses. But going back to db4.0 and even db3.3 didn't seem to help. I got exactly the same error with them. Obviously it's something in my setup. I checked and rechecked the following:

- Ice.jar and db.jar in CLASSPATH

- libdb_java-[4.1, 4.0, 3.3].so in either LD_LIBRARY_PATH or in a directory (e.g., /usr/local/lib) included in /etc/ld.so.conf

- Rebooting a couple of times.

db4.0 should work for IceJ because it does work for Ice on the same box.

Any pointers will be appreciated.
__________________
Lam
Reply With Quote
  #5 (permalink)  
Old 02-20-2003
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 962
Strange. Did you try any of the suggestions on Sleepycat's site?
Reply With Quote
  #6 (permalink)  
Old 02-20-2003
Lam Dang Lam Dang is offline
Registered User
 
 
Join Date: Feb 2003
Location: Gaithersburg, MD
Posts: 3
Smile

Sorry I goofed! I didn't set LD_LIBRARY_PATH correctly.

The IceJ test suite ran OK with db-4.1.25, but failed at the first Freeze test with db-4.0.14. Here's my setup:

export CLASSPATH=.:/usr/local/src/IceJ-1.0.0/lib/Ice.jar:/usr/local/src/db-4.1.25/build_unix/db.jar
export LD_LIBRARY_PATH=/usr/local/src/db-4.1.25/build_unix/.libs
export ICE_HOME=/usr/local/src/Ice-1.0.0

Thanks for your help.
__________________
Lam
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Don't "Ice-3.1.1-VC71.msi " include the "slice2java.exe"? Jason Gao Help Center 4 10-26-2006 11:23 AM
PermissionDeniedException ,reason is "internal server error" ewiniar Help Center 2 05-18-2006 05:55 AM
fatal error C1189: #error : "Ice for Visual C++ 6.0 requires STLport" richardma Help Center 4 01-13-2006 06:23 AM
"Filesystem demo" runtime error oops Help Center 3 09-25-2004 08:42 AM
Ice-1.1.0: compile error "undefined reference to xercesc_2_2" Urs Help Center 2 05-30-2003 03:29 PM


All times are GMT -4. The time now is 09:27 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.