See https://code.google.com/p/fastdtw. I've added a pom.xml to create a jar file.