Java version of mysar