Java version of library