From 39526cf09034be01b6e89e4d633d9173c4a8f938 Mon Sep 17 00:00:00 2001 From: Apexo01 Date: Tue, 24 May 2022 09:05:17 +0300 Subject: [PATCH] fix java search in start.cmd --- start.cmd | 4 ++++ start_config.cmd | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/start.cmd b/start.cmd index 9cee1a999..65298141c 100644 --- a/start.cmd +++ b/start.cmd @@ -28,6 +28,10 @@ if exist "%CUR_PATH%%CONFIG%.cmd" ( ) if not "%JAVA_PATH%" == "DO_NOT_CHECK_PATH" ( + if "%JAVA_PATH%" == "\bin\" ( + call :LOG [ERROR] JAVA_HOME not found, please setup your windows enviroment for installed java. + goto :EXIT + ) if not exist "%JAVA_PATH%java.exe" ( call :LOG [ERROR] Java not found. goto :EXIT diff --git a/start_config.cmd b/start_config.cmd index 575e4d8df..e76f0ddad 100644 --- a/start_config.cmd +++ b/start_config.cmd @@ -12,7 +12,7 @@ set CUR_PATH=%~dp0 @rem Executable Path @rem Note: Fill DO_NOT_CHECK_PATH if you need to run it from PATH @rem without detecting whether the executable file exists -set JAVA_PATH=C:\Program Files\Java\jdk1.8.0_202\bin\ +set JAVA_PATH=%JAVA_HOME%\bin\ set MITMDUMP_PATH=%CUR_PATH% set MONGODB_PATH=%CUR_PATH%