Initial Java version