Clear out old jdk before installing a new one.