@echo off
rem ---------------------------------------------------------------------------
rem Run script for the S-RAMP Interactive Shell (Windows)
rem
rem Environment Variable Prerequisites
rem
rem   JAVA_HOME       Must point at your Java Development Kit installation.
rem
rem ---------------------------------------------------------------------------
@echo on

@if not "%ECHO%" == ""  echo %ECHO%
@if "%OS%" == "Windows_NT" setlocal

if "%OS%" == "Windows_NT" (
  set "DIRNAME=%~dp0%"
) else (
  set DIRNAME=.\
)

if not exist "%JAVA_HOME%\bin\java.exe" goto noJava
"%JAVA_HOME%/bin/java.exe" -Xmx1024m -jar "%DIRNAME%\s-ramp-shell-0.5.0.Alpha1.jar" %*

:noJava
echo The JAVA_HOME environment variable is not defined correctly.
echo This environment variable is needed to run the S-RAMP shell.
goto end

:end
