Update rules for installing Java.