This documentation remains in a beta state. It has content gaps and might contain bugs.
To integrate nmslib’s approximate k-NN functionality (implemented in C++) into the k-NN plugin (implemented in Java), we created a Java Native Interface library, which lets the k-NN plugin leverage nmslib’s functionality. To see how we build the JNI library binary and learn how to get the most of it in your production environment, see JNI Library Artifacts.
For more information about JNI, see Java Native Interface on Wikipedia.