:Ver.1.1 ƃtH_debug.bat̏ꏊɕύX
:Ver.1.2 JavãpX̐ݒsvɂ
@echo off
set local>nul
cd /d %~dp0
set log=log.txt

:patch20161105
PATH %~dp0;%PATH%
PATH
:default
for %%I in (java.exe) do @set java="%%~$PATH:I"
if not %java% == "" goto :javago
:Java8
set jhome=\Program Files\Java\jre8\bin;\Program Files (x86)\Java\jre8\bin;C:\Program Files\Java\jre8\bin;C:\Program Files (x86)\Java\jre8\bin
for %%I in (java.exe) do @set java="%%~$jhome:I"
if not %java% == "" goto :javago
:Java7
set jhome=\Program Files\Java\jre7\bin;\Program Files (x86)\Java\jre7\bin;C:\Program Files\Java\jre7\bin;C:\Program Files (x86)\Java\jre7\bin
for %%I in (java.exe) do @set java="%%~$jhome:I"
if not %java% == "" goto :javago
goto :error

:javago
echo %java%
echo %java% >%log% 2>&1
%java% -version
%java% -version >>%log% 2>>&1
:saccubusgo
%java% -jar Saccubus.jar 2>&1 | %java% -cp Bin.jar Tee -a %log%
goto :eof
:error
echo java.exe܂B
echo readmeNew.txtQƂJavaCXg[ăpXݒ肵B
echo.
echo java.exe܂B>>%log%
echo readmeNew.txtQƂJavaCXg[ăpXݒ肵B>>%log%
echo.
pause
:eof
