1313@ rem See the License for the specific language governing permissions and
1414@ rem limitations under the License.
1515@ rem
16+ @ rem SPDX-License-Identifier: Apache-2.0
17+ @ rem
1618
1719@ if " %DEBUG% " == " " @ echo off
1820@ rem ##########################################################################
@@ -43,11 +45,11 @@ set JAVA_EXE=java.exe
4345%JAVA_EXE% -version > NUL 2 >& 1
4446if %ERRORLEVEL% equ 0 goto execute
4547
46- echo .
47- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48- echo .
49- echo Please set the JAVA_HOME variable in your environment to match the
50- echo location of your Java installation.
48+ echo . 1 >& 2
49+ echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1 >& 2
50+ echo . 1 >& 2
51+ echo Please set the JAVA_HOME variable in your environment to match the 1 >& 2
52+ echo location of your Java installation. 1 >& 2
5153
5254goto fail
5355
@@ -57,11 +59,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5759
5860if exist " %JAVA_EXE% " goto execute
5961
60- echo .
61- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62- echo .
63- echo Please set the JAVA_HOME variable in your environment to match the
64- echo location of your Java installation.
62+ echo . 1 >& 2
63+ echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1 >& 2
64+ echo . 1 >& 2
65+ echo Please set the JAVA_HOME variable in your environment to match the 1 >& 2
66+ echo location of your Java installation. 1 >& 2
6567
6668goto fail
6769
0 commit comments