Write a Java function that computes distances. After compiling the function as a .class or .jar file, declare it using the CREATE LIBRARY statement, and call the function as needed in your CCL project. Finally, link the library with the Event Stream Processor.
export ESP_JAVA_HOME=/user/bin/java/jre/lib/libjvm.so