@echo off
setlocal

rem ---------------------------------------------------------------------
rem Windows script to compile the Plate example component
rem ---------------------------------------------------------------------

rem ---------------------------------------------------------------------
rem *** IMPORTANT *** 
rem The Java compiler must be of correct version. Please refer
rem "Application Development - Environment Setup" section of the 
rem Development Guide, to know the required Java compiler version.
rem ---------------------------------------------------------------------

rem ---------------------------------------------------------------------
rem Confirm installation of JAVA compiler under %JAVA_HOME%
rem and of Isight under %FIPER_HOME%
rem ---------------------------------------------------------------------
if not exist "%JAVA_HOME%\bin\javac.exe" echo The environment variable JAVA_HOME must point to a JAVA development environment && exit /B 1

if not exist "%FIPER_HOME%\docs\java\SMAFIPsdk.jar" echo The environment variable FIPER_HOME must point to an Isight installation && exit /B 1

rem ---------------------------------------------------------------------
rem Set up the classpath and compile everything in this directory
rem ---------------------------------------------------------------------
set CLASSPATH=%FIPER_HOME%\docs\java\SMAFIPsdk.jar;%FIPER_HOME%\docs\java\SMAFIPdesktopsdk.jar;%FIPER_HOME%\docs\java\SMAFIPfrapi.jar

@echo on
%JAVA_HOME%\bin\javac.exe -classpath "%CLASSPATH%" -d . *.java
