#!/bin/sh
            
APP_HOME=`dirname $0`

CLASSPATH="$CLASSPATH:$APP_HOME/next.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/quickfix/nextfix.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/quickfix/mina-core-2.0.7.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/quickfix/slf4j-api-1.6.3.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/quickfix/slf4j-log4j12-1.6.3.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/high-scale-lib.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/log4j/log4j-1.2.15.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/jfxrt.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/http-client/commons-codec-1.4.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/http-client/commons-logging-1.1.1.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/http-client/httpclient-4.1.2.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/http-client/httpclient-cache-4.1.2.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/http-client/httpcore-4.1.2.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/http-client/httpmime-4.1.2.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/jabber/jabber-client.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/jabber/smack.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/jabber/smackx.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/jabber/smackx-debug.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/jabber/smackx-jingle.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/javafx-dialogs-0.0.3.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/jfx-autocomplete-textfield-0.0.1.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/datepicker-0.0.2.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/jdom-2.0.5.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/poi-excelant-3.10.1-20140818.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/poi-ooxml-schemas-3.10.1-20140818.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/poi-ooxml-3.10.1-20140818.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/poi-3.10.1-20140818.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/poi-scratchpad-3.10.1-20140818.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/dom4j-1.6.1.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/stax-api-1.0.1.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/xmlbeans-2.6.0.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/commons-codec-1.5.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/commons-logging-1.1.jar"
CLASSPATH="$CLASSPATH:$APP_HOME/lib/joda-time-2.9.9.jar"


echo "$CLASSPATH"

java -cp "$CLASSPATH" kz.kase.next.NextTerminal "$LOGIN" "$PASS" "$CONFIG"
            
        