Java version working