install_service.bat
@set TARGET_APP=batch.weather.Launcher
@set JVM_PATH="C:\Program Files\Java\jdk1.6.0_21\jre\bin\client\jvm.dll"
@set DIST_HOME="D:\star_map\dist"
@set OUT_LOG="D:\star_map\log\stdout.log"
@set ERR_LOG="D:\star_map\log\stderr.log"
@set JSEXE="D:\star_map\JavaService-2.0.10\JavaService.exe"
 
@set CLASSPATH="D:\star_map\dist\lib\Altibase.jar";%CLASSPATH%
@set CLASSPATH="D:\star_map\dist\lib\aspectjweaver.jar";%CLASSPATH%
@set CLASSPATH="D:\star_map\dist\lib\commons-collections.jar";%CLASSPATH%
@set CLASSPATH="D:\star_map\dist\lib\commons-configuration-1.2.jar";%CLASSPATH%
@set CLASSPATH="D:\star_map\dist\lib\commons-dbcp.jar";%CLASSPATH%
@set CLASSPATH="D:\star_map\dist\lib\commons-lang-2.1.jar";%CLASSPATH%
@set CLASSPATH="D:\star_map\dist\lib\commons-logging.jar";%CLASSPATH%
@set CLASSPATH="D:\star_map\dist\lib\commons-pool.jar";%CLASSPATH%
@set CLASSPATH="D:\star_map\dist\lib\hoon.jar";%CLASSPATH%
@set CLASSPATH="D:\star_map\dist\lib\hsqldb.jar";%CLASSPATH%
@set CLASSPATH="D:\star_map\dist\lib\ibatis-2.3.4.726-hoon.jar";%CLASSPATH%
@set CLASSPATH="D:\star_map\dist\lib\log4j-1.2.13.jar";%CLASSPATH%
@set CLASSPATH="D:\star_map\dist\lib\msbase.jar";%CLASSPATH%
@set CLASSPATH="D:\star_map\dist\lib\mssqlserver.jar";%CLASSPATH%
@set CLASSPATH="D:\star_map\dist\lib\msutil.jar";%CLASSPATH%
@set CLASSPATH="D:\star_map\dist\lib\mysql-connector-java-3.1.13-bin.jar";%CLASSPATH%
@set CLASSPATH="D:\star_map\dist\lib\ojdbc14.jar";%CLASSPATH%
@set CLASSPATH="D:\star_map\dist\lib\quartz-1.5.2.jar";%CLASSPATH%
@set CLASSPATH="D:\star_map\dist\lib\spring.jar";%CLASSPATH%


@%JSEXE% -install WEATHER_SERVICE %JVM_PATH% -Djava.class.path=%CLASSPATH% -Xms64M -Xmx512M -start %TARGET_APP% -out %OUT_LOG% -err %ERR_LOG% -current %DIST_HOME% -description "Weather batch service"

Posted by 짱가쟁이