java bat 启动文件

@echo off
if '%1=='## goto ENVSET

SET APPHOME=%~dp0
SET LIBDIR=%APPHOME%lib
SET MAINCLASS= com.xx.xx.XxxxXxx
SET ENGINE=.\XxxxXxxxx.jar

rem echo %LIBDIR%
SET CLSPATH=.
FOR %%c in (%LIBDIR%\*.jar) DO Call %0 ## %%c

rem echo %CLSPATH%
rem echo %0
goto RUN

:RUN
SET CLSPATH=%CLSPATH%;.\lib\jdic\jdic.jar;%ENGINE%
echo %CLSPATH%
rem  -XX:+ForceTimeHighResolution , java multi-thread program could change the system time soon, so add this parameter
.\binary\jre\bin\java -XX:+ForceTimeHighResolution -cp %CLSPATH% %MAINCLASS%
goto END

:ENVSET
set CLSPATH=%CLSPATH%;%2
goto END

:END

你可能感兴趣的:(java,thread,C++,c,C#)