Display warning if JAVA_HOME isn't set properly.