@echo off
rem Start ABLE JAS Platform
rem Arg 1 is required and is the port to use

rem Note: assumes that Java environment is set up; ie, java -version shows a java2 vm.
rem Must run from bin directory if ABLE_HOME is not set.
rem Must set ABLE_HOME directly if installed in directory name containing spaces
rem or if language is not English (output from dir must include words "Directory of").


if "%ABLE_HOME%" == "" goto SET_DIR
goto RUN_CMD

:SET_DIR
rem don't change name of DIRECTORY.BAT file; for each blank in path add "%%2 %%3"
echo set ABLE_HOME=%%2>DIRECTORY.BAT
dir ..\*. | find " Directory of ">TEMP.BAT
type temp.bat
call TEMP.BAT >NUL
DEL DIRECTORY.BAT >NUL
DEL TEMP.BAT >NUL
rem echo Able_Home is: %ABLE_HOME%

:RUN_CMD
@echo on
java -classpath ".;%ABLE_HOME%\lib\able.jar;%ABLE_HOME%\lib\ableplatform.jar;%ABLE_HOME%\lib\amabLogic.jar;%ABLE_HOME%\lib\jas.jar;%ABLE_HOME%\lib\JLog.jar;%CLASSPATH%" -Dable.home="%ABLE_HOME%" -Dable.prefdir="%ABLE_HOME%\.." com.ibm.able.platform.AblePlatformSupportImpl %1
@echo off
