correct java setting