java version of rin engine