How do I solve an unsatisfied link error when using DB XMLs Java API?
Often, DB XML’s Java users come up with an issue like this: java.lang.UnsatisfiedLinkError: no libdb_java43 in java.library.path This occurs because DB XML is written in C++, and needs quite a few different native shared libraries (or DLLs on windows) in order to work. In order to solve this problem, you should add the directory containing this shared libraries (or DLLs) to the java.library.path property. One way to do this is to use the “-D” flag when invoking the “java” command, for example: java -Djava.library.path=”/home/jpcs/dbxml-2.4.8/install/lib/” MyClass When this doesn’t work or is not possible (ie: using Tomcat), adding the library directory to the LD_LIBRARY_PATH (linux), DYLD_LIBRARY_PATH (OS X), or PATH (windows) environment variable should allow the JVM to find the correct libraries.