Working java client