Fixing the error message as null is being replaced in place of JAVA_HOME