Find the jar package in the Bat file and dynamically set the Classpath

@echo off
setLocal EnableDelayedExpansion
set CLASSPATH="
for /R lib %%a in (*.jar) do (
  set CLASSPATH=!CLASSPATH!;%%a
)
set CLASSPATH=!CLASSPATH!"
java com.hmg.uims.server.MinaServer
pause

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325926798&siteId=291194637