| | |
| | | @rem See the License for the specific language governing permissions and |
| | | @rem limitations under the License. |
| | | @rem |
| | | @rem SPDX-License-Identifier: Apache-2.0 |
| | | @rem |
| | | |
| | | @if "%DEBUG%"=="" @echo off |
| | | @rem ########################################################################## |
| | |
| | | %JAVA_EXE% -version >NUL 2>&1 |
| | | if %ERRORLEVEL% equ 0 goto execute |
| | | |
| | | echo. |
| | | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. |
| | | echo. |
| | | echo Please set the JAVA_HOME variable in your environment to match the |
| | | echo location of your Java installation. |
| | | echo. 1>&2 |
| | | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 |
| | | echo. 1>&2 |
| | | echo Please set the JAVA_HOME variable in your environment to match the 1>&2 |
| | | echo location of your Java installation. 1>&2 |
| | | |
| | | goto fail |
| | | |
| | |
| | | |
| | | if exist "%JAVA_EXE%" goto execute |
| | | |
| | | echo. |
| | | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% |
| | | echo. |
| | | echo Please set the JAVA_HOME variable in your environment to match the |
| | | echo location of your Java installation. |
| | | echo. 1>&2 |
| | | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 |
| | | echo. 1>&2 |
| | | echo Please set the JAVA_HOME variable in your environment to match the 1>&2 |
| | | echo location of your Java installation. 1>&2 |
| | | |
| | | goto fail |
| | | |