Skip to content

Commit

Permalink
[MNG-7010] Omit "NB: JAVA_HOME should point to a JDK not a JRE"
Browse files Browse the repository at this point in the history
This closes #512
  • Loading branch information
michael-o committed Jul 25, 2021
1 parent 22a8cfa commit f32eb09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions apache-maven/src/bin/mvn
Expand Up @@ -100,9 +100,8 @@ else
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

Expand Down
5 changes: 2 additions & 3 deletions apache-maven/src/bin/mvn.cmd
Expand Up @@ -54,9 +54,8 @@ set "JAVACMD=%JAVA_HOME%\bin\java.exe"
:checkJCmd
if exist "%JAVACMD%" goto chkMHome

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

:chkMHome
Expand Down

0 comments on commit f32eb09

Please sign in to comment.