d8.bat因找不到java_exe文件,触发EOF
d8.bat中之前代码为:
set java_exe=
if exist "%~dp0..\tools\lib\find_java.bat" call "%~dp0..\tools\lib\find_java.bat"
if exist "%~dp0..\..\tools\lib\find_java.bat" call "%~dp0..\..\tools\lib\find_java.bat"
if not defined java_exe goto :EOF
修改后:
set java_exe=
if exist "%~dp0..\tools\lib\find_java.bat" call "%~dp0..\tools\lib\find_java.bat"
if exist "%~dp0..\..\tools\lib\find_java.bat" call "%~dp0..\..\tools\lib\find_java.bat"
if not defined java_exe (
echo Java.exe not found in the path.
goto :EOF
)
运行d8.bat,此段代码,可以看到此段提示
修改find_java.bat路径并拷贝find_java32.exe\find_java64.exe
修改d8.bat中查找find_java.bat路径,并拷贝find_java.bat、find_java32.exe、find_java64.exe到lib路径下。
set java_exe=
if exist "%~dp0lib\find_java.bat" call "%~dp0lib\find_java.bat"
if not defined java_exe (
echo Java.exe not found in the path.
goto :EOF
)
find_java.bat、find_java32.exe、find_java64.exe下载链接如下
find_java.bat :
find_java32.exe
find_java64.exe