@echo off

set oldcp=%classpath%
set classpath=postest.jar
set CLASSPATH=%CLASSPATH%;eloJPosService114.jar;jna-4.0.0.jar;jna-platform-4.0.0.jar;
set classpath=%classpath%;xerces.jar
set classpath=%classpath%;%cd%\
set classpath=%classpath%;javapos-1.14.2.jar

REM gbi: next setting are good, eloJPosService114.jar should be in the front
set oldcp=%CLASSPATH%
set CLASSPATH=postest.jar;eloJPosService114.jar;javapos-1.14.2.jar;jna-4.0.0.jar;jna-platform-4.0.0.jar;xerces.jar;

set CLASSPATH=postest.jar;javapos-1.14.2.jar;jna-4.0.0.jar;jna-platform-4.0.0.jar;xerces.jar;eloJPosService114.jar;

REM %lp% is the library path used when loading
REM java native methods

set lp=C:\POSTest-1.10.0-bin_x64

REM ***************************************
REM *  Add Device Specific jar's here...  *
REM ***************************************

REM set classpath=%classpath%;c:\path_to_service.jar
REM set classpath=%classpath%;sampleld.jar
REM set lp=%lp%;c:\path_to_native_methods


cd C:\POSTest-1.10.0-bin_x64

"C:\Program Files\Java\jdk1.7.0_80\bin\java.exe" -cp %classpath% -Djava.library.path=%lp% com.jpos.POStest.POStest

set classpath=%oldcp%
