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 )