added a java version