[MNG-7010] Omit "NB: JAVA_HOME should point to a JDK not a JRE"

This closes #512
This commit is contained in:
Michael Osipov 2021-07-23 22:45:34 +02:00
parent 9c69c78531
commit 5fa834f78b
2 changed files with 4 additions and 6 deletions

View File

@ -50,9 +50,8 @@ if [ -z "$JAVACMD" ] ; then
fi
if [ ! -x "$JAVACMD" ] ; then
echo "The JAVA_HOME environment variable is not defined correctly" >&2
echo "This environment variable is needed to run this program" >&2
echo "NB: JAVA_HOME should point to a JDK not a JRE" >&2
echo "The JAVA_HOME environment variable is not defined correctly," >&2
echo "this environment variable is needed to run this program." >&2
exit 1
fi

View File

@ -55,9 +55,8 @@ set "JAVACMD=%JAVA_HOME%\bin\java.exe"
:checkJCmd
if not exist "%JAVACMD%" (
echo The JAVA_HOME environment variable is not defined correctly >&2
echo This environment variable is needed to run this program >&2
echo NB: JAVA_HOME should point to a JDK not a JRE >&2
echo The JAVA_HOME environment variable is not defined correctly, >&2
echo this environment variable is needed to run this program. >&2
goto error
)