use ro with java