From 5fa834f78be178b4f40b5ffda6d3c0dc873b497e Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Fri, 23 Jul 2021 22:45:34 +0200 Subject: [PATCH] [MNG-7010] Omit "NB: JAVA_HOME should point to a JDK not a JRE" This closes #512 --- apache-maven/src/assembly/shared/init | 5 ++--- apache-maven/src/assembly/shared/validate.cmd | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/apache-maven/src/assembly/shared/init b/apache-maven/src/assembly/shared/init index 3ccae857e8..9a4fadbb05 100755 --- a/apache-maven/src/assembly/shared/init +++ b/apache-maven/src/assembly/shared/init @@ -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 diff --git a/apache-maven/src/assembly/shared/validate.cmd b/apache-maven/src/assembly/shared/validate.cmd index e2a6e4e3af..d7e8dfa6ed 100644 --- a/apache-maven/src/assembly/shared/validate.cmd +++ b/apache-maven/src/assembly/shared/validate.cmd @@ -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 )