@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 bat 启动文件
最新推荐文章于 2024-05-10 16:02:17 发布