CMD常用命令09设置Java的ClassPath

::Hansen
::2012-02-22

::Set ClassPath
@echo off
for %%i in ("lib/*.jar") do call :appendPath %%i
goto pathOK

:appendPath
set CLASSPATH=%CLASSPATH%;lib/%1
goto :eof

:pathOk
@echo on

Leave a Reply

Your email address will not be published.

*