@ECHO OFF
@setlocal

if .==%NAUTICA_HOME%. GOTO ERR

set NAUTICA_LIB="%NAUTICA_HOME%\lib"
set CLASSPATH=.;%NAUTICA_LIB%\nautica-core.jar;%NAUTICA_LIB%\xpdl.jar;%NAUTICA_LIB%\nwf.jar;%NAUTICA_LIB%\xbean.jar;%NAUTICA_LIB%\commons-logging-1.0.3.jar;%NAUTICA_LIB%\concurrent-1.3.4.jar;%NAUTICA_LIB%\log4j-1.2.8.jar;%NAUTICA_LIB%\spring-1.1.jar;%NAUTICA_LIB%\mysql-connector-java-3.1.7-bin.jar;%NAUTICA_LIB%\toolagent.jar;%NAUTICA_LIB%\nautica-iwf.jar;%NAUTICA_LIB%\activation.jar;%NAUTICA_LIB%\mail.jar;%NAUTICA_LIB%\script.jar;%NAUTICA_LIB%\pnuts-jsr223.jar;%NAUTICA_LIB%\pnuts.jar;%NAUTICA_LIB%\pnuts-modules.jar;%NAUTICA_LIB%\activemq-core-3.0.jar;%NAUTICA_LIB%\geronimo-spec-j2ee-management-1.0-rc4.jar;%NAUTICA_LIB%\geronimo-spec-jms-1.1-rc4.jar;%NAUTICA_LIB%\geronimo-spec-jta-1.0.1B-rc4.jar;%NAUTICA_LIB%\commons-dbcp-1.2.jar;%NAUTICA_LIB%\commons-pool-1.2.jar;%NAUTICA_LIB%\activeio-1.0-SNAPSHOT.jar;%NAUTICA_LIB%\commons-collections-2.1.jar
set ENGINESTARTER=jp.co.argo21.nautica.workflow.WorkflowEngineStarter

cd "%NAUTICA_HOME%"

start "" "%JAVA_HOME%\bin\orbd" -defaultdb "%NAUTICA_HOME%\temp" -ORBInitialPort 1050

"%JAVA_HOME%\bin\java" -classpath %CLASSPATH% -Xms64m -Xmx256m %ENGINESTARTER% -home "%NAUTICA_HOME%" %*

GOTO END

:ERR
@echo 環境変数NAUTICA_HOMEが設定されていません。
@echo 環境変数NAUTICA_HOMEにNAUTICAをインストールしたディレクトリを
@echo 設定してください。

:END
@endlocal
