Close
dtSearch Text Retrieval Engine Programmer's Reference
Java 64-bit Linux

Steps to deploy the dtSearch Engine in a 64-bit Java application (Linux).

1. Copy dtSearchEngine.jar (from <dtSearch>/examples/java/classes) to a folder that is on the Java CLASSPATH. 

2. Copy libdtsjava64.so to a folder that is on the system LD_LIBRARY_PATH. 

Java version or later 1.4.1 is required. 

For additional optional files and components, please see: Installing the dtSearch Engine

The Java interface to the dtSearch Engine is based on the Java Native Interface (JNI). Therefore, both the Java classes and a platform-specific binary executable are needed to use it. The Java classes are in examples\java\classes\dtSearchEngine.jar, which must be on the CLASSPATH. Adding the dtSearch Engine examples/java/classes folder to the CLASSPATH, or copying its contents to a folder on the CLASSPATH, will make these classes available in Java. 

Under Linux, the binary executable is libdtsearch.so, which must be accessed through a symbolic link named libdtsjava.so. libdtsjava.so must be in a folder that is on the LD_LIBRARY_PATH, or you will get an "Unsatisfied Link" exception when you try to use the dtSearch Engine classes in Java. You can also copy the dtSearch .so files to your /usr/local/lib folder, or use ldconfig to make them accessible on your system.