eliminated redundant actions when JDK was already installed.