add java setting and update