To use the toolkit with Java, you need to build the toolkit including the Java wrappers. On Unix, you do this by adding the --enable-java line when running the configure script. The script should find your Java installation automatically, but if it doesn't, you can show it where to find java by using the --with-javahome parameter. If you are using Windows, use the swig project file from Visual Studio to build the Java API. You may need to change the include path on the project to point to your Java installation.
Once it is built, the lemur.jar and liblemur.so files should be in your /swig/obj/java directory. If you are using Mac OS X, liblemur.so will be called liblemur.jnilib. The lemur.jar file contains all of the Java support files for the toolkit, while liblemur.so contains the Toolkit API C++ code.
If you run an application that uses the lemur.jar file, it will attempt to load the liblemur.so file automatically. For this to work, you need to set the java.library.path variable correctly. You can do this on the java command line:
java -cp lemur.jar -Djava.library.path=swig/obj/java MyApplication
For indexing and retrieval with Java see: