Files
xin-launcher/xin-launcher/run.bat
2024-11-20 15:21:16 +08:00

27 lines
785 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
title Xin-launcher启动器请勿关闭
SETLOCAL
set "CURRENT_DIR=%cd%"
set "CATALINA_HOME=%CURRENT_DIR%"
set MAINPATH=%cd%\lib\xin-launcher.jar
set JAVA_HOME="C:\project\test_environment\jdk1.8.0_191"
echo CURRENT_DIR=%CURRENT_DIR%
echo JAVA_HOME=%JAVA_HOME%
echo MAINPATH=%MAINPATH%
@rem 设置Java虚拟机参数
set JAVA_VM=-hotspot
@rem 设置Java虚拟机所使用的内存
set MEM_ARGS=-Xms128m -Xmx128m -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -XX:MaxDirectMemorySize=128m -Xss1024K
@rem start /b
taskkill /f /t /im javaw.exe
CHCP 65001
@rem 如果此行命令运行失败 使用下方命令
start /b %JAVA_HOME%\bin\javaw %MEM_ARGS% -Dfile.encoding=UTF-8 -jar %MAINPATH%
@rem start /b %JAVA_HOME%\bin\javaw %MEM_ARGS% %MAINPATH%
:end
ENDLOCAL