Re: [bdbxml] problem with shared library on MacOSX using Netbeans 4.1, Java 1.5

George Feinberg <[email protected]>
Newsgroups gmane.comp.db.dbxml.general
Message-ID <[email protected]>
On Jun 29, 2005, at 3:32 PM, Christine Jones wrote:

> Hello,
> I am using Java 1.5; NetBeans 4.1.; MacOSX 10.4.1 with Sleepycat DBXML
> 2.1.8 embedded.
> When I try to run one of my Java classes against I get this error.
>
>
>> java.lang.UnsatisfiedLinkError: no db_java-4.3 in
>> java.library.pathjava.lang.UnsatisfiedLinkError: no db_java-4.3 in
>> java.library.path

How did you build the product?  You should have used
the script, buildall.sh in the top level directory.
To build with java, use:
     buildall.sh --enable-java

By default, this will place all build libraries into the directory,  
dbxml-2.1.8/install/lib.
All shared libraries will have the extension ".dylib" on your platform,
So you should see libdb_java-4.3.dylib.

In order to run on your platform, modify the environment
variable, DYLD_LIBRARY_PATH, to include the full
path to dbxml-2.1.8/install/lib.  This is in addition to the
CLASSPATH changes to point to the non-native jar files
that are also in dbxml-2.1.8/install/lib

George



>>
>>
> I am under the impression I need to create a shared library called
> libdb_java-4.3. I have not been able to locate db_java-4.3 anywhere  
> on my
> system. Does anyone have any idea how to handle this problem? Since I
> followed the Unix instructions to install, I also tried to follow  
> them to
> create the dynamic library. When I tried this at the command line,  
> I got
> testprog.o: no such file or directory. Am I supposed to replace  
> this file
> name with something, or am I supposed to have this file on my  
> system? I
> don't have it anywhere on my system.
> cc -L BUILD_DIRECTORY/.libs -o testprog testprog.o -ldbxml-3.5
> env LD_LIBRARY_PATH="BUILD_DIRECTORY/.libs:$LD_LIBRARY_PATH" ./ 
> testprog
>
> Any help would be much appreciated.
> C Jones
>



------------------------------------------
To remove yourself from this list, send an
email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.