Skip to content

Commit

Permalink
fix java search in start.cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
ultard authored and Melledy committed May 24, 2022
1 parent c8a7aea commit 39526cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions start.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion start_config.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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%

Expand Down

0 comments on commit 39526cf

Please sign in to comment.