Warn also on Windows when JAVA_HOME isn't set

This commit is contained in:
Michael Osipov 2021-07-23 21:05:33 +02:00
parent f7a775b79a
commit a2ab329edc
2 changed files with 4 additions and 1 deletions

View File

@ -57,7 +57,7 @@ if [ ! -x "$JAVACMD" ] ; then
fi
if [ -z "$JAVA_HOME" ] ; then
echo "Warning: JAVA_HOME environment variable is not set."
echo "Warning: JAVA_HOME environment variable is not set." >&2
fi
# traverses directory structure from process work directory to filesystem root

View File

@ -61,3 +61,6 @@ if not exist "%JAVACMD%" (
goto error
)
if "%JAVA_HOME%"=="" (
echo Warning: JAVA_HOME environment variable is not set. >&2
)