鸿 网 互 联 www.68idc.cn

当前位置 : 服务器租用 > 服务器相关 > 批处理 > >

设置classpath的bat,来源于tomcat

来源:互联网 作者:佚名 时间:2016-03-03 12:14
无详细内容 CLASSPATH rem ---------------------------------------------------------------------------rem Append to CLASSPATHremrem $Id: cpappend.bat 758256 2009-03-25 13:43:00Z mturk $rem -----------------------------------------------------
<无详细内容> CLASSPATH
rem ---------------------------------------------------------------------------
rem Append to CLASSPATH
rem
rem $Id: cpappend.bat 758256 2009-03-25 13:43:00Z mturk $
rem ---------------------------------------------------------------------------

rem Process the first argument
if ""%1"" == """" goto end
set CLASSPATH=%CLASSPATH%;%1
shift

rem Process the remaining arguments
:setArgs
if ""%1"" == """" goto doneSetArgs
set CLASSPATH=%CLASSPATH% %1
shift
goto setArgs
:doneSetArgs
:end
for %%I in (dir lib/*.jar) do call cpappend.bat lib/%%I
java -classpath %CLASSPATH% MainClass
网友评论
<